inspec/www/source/layouts/layout.slim
Maggie Walker 81f8e0e8bb Add global message to website
Adds a global message that will appear above the nav that can
be customized to advertise upcoming events.
2016-09-30 09:39:14 -07:00

51 lines
2.4 KiB
Text

doctype html
html
head
meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"
meta charset="utf-8"
meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"
link href="/favicon.png" rel="icon" type="image/png"
link href="/favicon.ico" rel="icon"
title = current_page.data.title || "InSpec"
link href='//fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'
link rel='stylesheet' type='text/css' href='css/inspec_tutorial.css'
== stylesheet_link_tag :site
body class="#{page_classes}"
= partial "layouts/global-message"
.container
= partial "layouts/nav"
main#main-content
== yield
= partial "layouts/footer"
script src='scripts/inspec_tutorial.js'
script src='dist/inspec_tutorial.js'
div inspec-tutorial="true" class="inspec-tutorial" hidden="true"
= "Loading"
== javascript_include_tag "all"
javascript:
$(document).foundation();
$('.try-demo').click(function(event){
event.stopPropagation();
$('.inspec-tutorial').show()
window.dispatchEvent(new Event('resizeTerminal'));
$('.quit-inspec-tutorial').click(function(event){
event.stopPropagation();
$('.inspec-tutorial').hide()
})
});
javascript:
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.1.0";
analytics.load("2NpoxZS2fnBmOgGdnQOymLNm6wuij13X");
analytics.page()
}}();