JS restructuring

parent 30aee91e
Pipeline #8773534 passed with stages
in 5 minutes and 30 seconds
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/hexo
# Full project: https://gitlab.com/pages/plain-html
image: node:6.10.0
pages:
script:
......
......@@ -27,6 +27,7 @@
"dependencies": {
"Respond.js": "git+https://github.com/scottjehl/Respond.git#1.4.0",
"bootstrap-sass": "^3.3.7",
"coffeescript": "^1.12.6",
"font-awesome": "^4.7.0",
"html5shiv": "^3.7.3",
"jquery": "^3.2.1",
......
......@@ -15,5 +15,4 @@ html(lang='ml')
//-(oncontextmenu="return false;")
block content
include ./templates/BSModal
include ./templates/js
block scripts
......@@ -10,14 +10,16 @@ block content
h1.FourZeroFour
span.green 404
span.blue Page Not Found
//
<p>One of the following things could have happened:</p>
<ul class="FourZeroFour">
<li>The URL is wrong.</li>
<li>The page you're looking for never existed, doesn't exist or is having an existential crisis.</li>
<li>If you're looking for an offer: it might have been deleted, archived or might be under moderation.</li>
<li>Smeagol took it away. Gollum! Gollum!</li>
</ul>
//- p One of the following things could have happened:
//- ul.FourZeroFour
li The URL is wrong.
li
| The page you're looking for never existed, doesn't exist or is having an existential crisis.
li
| If you're looking for an offer: it might have been deleted, archived or might be under moderation.
li Smeagol took it away. Gollum! Gollum!
p.FourZeroFour
a(href='/') ← Go back to /
blockquote.FourZeroFour
......@@ -34,7 +36,3 @@ block content
strong "You must be,"
| said the Cat,
strong "or you wouldn't have come here."
block scripts
script(type="text/javascript").
console.log("Page Not Loaded!");
extends ../layout.pug
block MetaHead
//- The UseLess GitLab Pages fix!
block content
#main.container
include ../templates/SocialMedia
......@@ -38,8 +35,9 @@ block content
br
include ../templates/SocialLinks
#time_countdown.time-count-container
+TimeCountUp(0,0,0,0,0)
+TimeCountUp(18,11,14,30,45)
block scripts
include ../templates/js
script(type="text/javascript").
console.log("Main Page Loaded!");
......@@ -48,3 +48,9 @@ mixin TimeCountUp(years, days, hours, minutes, seconds)
span.digit= seconds
span.digit= seconds
span.time-name Seconds
mixin link(rel, href)
link(rel=rel, href=href, type!=attributes.type, sizes!=attributes.sizes, color!=attributes.color)/
mixin script(src)
script(type="text/javascript", src=src)
//- Compiled CSS
link(rel='stylesheet', type='text/css', href='css/vendor.css')/
+link('stylesheet', 'css/vendor.css')(type='text/css')
// HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries
// WARNING: Respond.js doesn't work if you view the page via file://
<!--[if lt IE 9]>
script(type='text/javascript', src='js/html5shiv.js')
script(type='text/javascript', src='js/respond.js')
+script('js/html5shiv.js')
+script('js/respond.js')
<![endif]-->
//- the files in the css directory are added here on grunt serve
link(rel='stylesheet', type='text/css', href='css/index.css')/
+link('stylesheet', 'css/index.css')(type='text/css')
//-section#cookiewarning.fixedlocation
| By using this webpage, you agree that you have read the
a(href='/termsandconditions') terms and conditions
| and the
a(href='/privacypolicy') privacy policy
| ,and also agree to abide by it.
a(onclick='trackOff()')
strong OK
// un-necassary comment will not be displayed because of CloudFlare
section#rightside.fixedlocation
.social-links
//- span.text-left
| &copy; 1995 | Shrimadhav U K
//- a.fa.fa-2x.fa-angellist(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/AngelCo')
span.label AngelList
//- a.fa.fa-2x.fa-bitbucket(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/BitBucket')
span.label BitBucket
//- a.fa.fa-2x.fa-bitcoin(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/BitCoin')
span.label Bitcoin
//- a.fa.fa-2x.fa-cab(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/CodeMentor')
span.label CodeMentor
//- a.fa.fa-diasp(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/Diaspora')
span.fa-stack.fa-lg
span.fa.fa-star-o.fa-stack-1x
span.fa.fa-fw.fa-stack-1x
strong D
span.label Diaspora
a.fa.fa-2x.fa-envelope(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/ElectronicMail')
span.label Email
//- a.fa.fa-2x.fa-facebook(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/FaceBook')
span.label Facebook
//- a.fa.fa-2x.fa-flickr(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/Flickr')
span.label Flickr
a.fa.fa-2x.fa-github(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/GitHub')
span.label GitHub
a.fa.fa-2x.fa-gitlab(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/GitLab')
span.label GitLab
//- a.fa.fa-2x.fa-google-plus(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/GooglePlus')
span.label Google+
//- a.fa.fa-2x.fa-hacker-news(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/HackerNews')
span.label HackerNews
//- a.fa.fa-2x.fa-instagram(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/InstaGram')
span.label Instagram
a.fa.fa-2x.fa-key(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/KeyBase')
span.label KeyBase
a.fa.fa-2x.fa-linkedin(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/LinkedIn')
span.label LinkedIn
a.fa.fa-2x.fa-quora(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/Quora')
span.label Quora
//- a.fa.fa-2x.fa-stack-overflow(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/StackOverFlow')
span.label StackOverFlow
//- a.fa.fa-2x.fa-telegram(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/Telegram')
span.label Telegram
//- a.fa.fa-2x.fa-phone(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/MobileNumber')
span.label Mobile Number
a.fa.fa-2x.fa-twitter(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/Twitter')
span.label Twitter
//- a.fa.fa-2x.fa-whatsapp(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/WhatsApp')
span.label WhatsApp
a.fa.fa-2x.fa-youtube-play(href='https://spechide.shrimadhavuk.me/contact/SpEcHiDe.me/YouTube')
span.label YouTube
//- span.text-right
| &copy; 1995 | Shrimadhav U K
//- Compile JavaScript
script(type="text/javascript", src='js/vendor.js')
+script('js/vendor.js')
//- the files in the js directory are added here on grunt serve
script(type="text/javascript", src='js/index.js')
+script('js/index.js')
// http://realfavicongenerator.net/
link(rel='apple-touch-icon', type='image/png', href='//spechide.shrimadhavuk.me/img/favicons/apple-touch-icon.png', sizes='180x180')/
link(rel='icon', type='image/png', href='//spechide.shrimadhavuk.me/img/favicons/favicon-32x32.png', sizes='32x32')/
link(rel='icon', type='image/png', href='//spechide.shrimadhavuk.me/img/favicons/favicon-16x16.png', sizes='16x16')/
link(rel='manifest', href='//spechide.shrimadhavuk.me/img/favicons/manifest.json')/
link(rel='mask-icon', href='//spechide.shrimadhavuk.me/img/favicons/safari-pinned-tab.svg', color='#5bbad5')/
link(rel='shortcut icon', href='//spechide.shrimadhavuk.me/img/favicons/favicon.ico')/
+link('apple-touch-icon','//spechide.shrimadhavuk.me/img/favicons/apple-touch-icon.png')(type='image/png',sizes='180x180')
+link('icon','//spechide.shrimadhavuk.me/img/favicons/favicon-32x32.png')(type='image/png',sizes='32x32')
+link('icon','//spechide.shrimadhavuk.me/img/favicons/favicon-16x16.png')(type='image/png', sizes='16x16')
+link('manifest','//spechide.shrimadhavuk.me/img/favicons/manifest.json')
+link('mask-icon','//spechide.shrimadhavuk.me/img/favicons/safari-pinned-tab.svg')(color='#5bbad5')
+link('shortcut icon','//spechide.shrimadhavuk.me/img/favicons/favicon.ico')
+meta('apple-mobile-web-app-title','Shrimadhav U K')
+meta('application-name','Shrimadhav U K')
+meta('msapplication-config','//spechide.shrimadhavuk.me/img/favicons/browserconfig.xml')
......
......@@ -4,7 +4,7 @@
+meta('description',$vars.description)
// if each site makes their own METAs, then ...?
link(rel='canonical', href='http://www.shrimadhavuk.me/')/
+link('canonical','http://www.shrimadhavuk.me/')
// OpenGraph
each val, index in $vars.facebookmeta
......@@ -15,7 +15,7 @@ each val, index in $vars.twittermeta
+meta(index,val)
// Google Plus Author Info
link(rel='author', href='https://plus.google.com/104708839037568086407')/
+link('author','https://plus.google.com/104708839037568086407')
// Google Structured data markup
script(type='application/ld+json').
......
nav.navbar.navbar-default.navbar-fixed-top.navbar-transparent
.container-fluid
.navbar-header
button.navbar-toggle(type='button', data-toggle='collapse', data-target='#bs-example-navbar-collapse-1')
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.malayalam_para.navbar-brand(href='//www.shrimadhavuk.me/') Home
#bs-example-navbar-collapse-1.collapse.navbar-collapse
ul.nav.navbar-nav.navbar-right
li
a.malayalam_para(href='//blog.shrimadhavuk.me/', data-toggle='tooltip', title='the plAce where I blog') Blog
li
a.malayalam_para(href='//about.shrimadhavuk.me/', data-toggle='tooltip', title='About ME in a formal way') About
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment