2016-09-11 23:26:00 +00:00
|
|
|
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"
|
|
|
|
|
2016-09-23 21:51:01 +00:00
|
|
|
link href="/favicon.png" rel="icon" type="image/png"
|
|
|
|
link href="/favicon.ico" rel="icon"
|
|
|
|
|
2016-09-11 23:26:00 +00:00
|
|
|
title = current_page.data.title || "InSpec"
|
|
|
|
|
2017-01-06 08:06:40 +00:00
|
|
|
link href='//fonts.googleapis.com/css?family=Roboto:300,400' rel='stylesheet' type='text/css'
|
2016-12-13 03:13:38 +00:00
|
|
|
link href='//allfont.net/allfont.css?fonts=source-sans-pro' rel='stylesheet' type='text/css'
|
|
|
|
|
2016-09-23 13:26:22 +00:00
|
|
|
link rel='stylesheet' type='text/css' href='css/inspec_tutorial.css'
|
2016-09-11 23:26:00 +00:00
|
|
|
|
|
|
|
== stylesheet_link_tag :site
|
|
|
|
|
|
|
|
body class="#{page_classes}"
|
2016-09-30 16:37:43 +00:00
|
|
|
= partial "layouts/global-message"
|
|
|
|
|
2016-09-21 00:11:41 +00:00
|
|
|
.container
|
|
|
|
= partial "layouts/nav"
|
2016-09-11 23:26:00 +00:00
|
|
|
|
2016-09-21 00:11:41 +00:00
|
|
|
main#main-content
|
|
|
|
== yield
|
|
|
|
|
|
|
|
= partial "layouts/footer"
|
2016-09-19 18:04:51 +00:00
|
|
|
|
2016-09-23 13:26:22 +00:00
|
|
|
script src='scripts/inspec_tutorial.js'
|
|
|
|
script src='dist/inspec_tutorial.js'
|
|
|
|
div inspec-tutorial="true" class="inspec-tutorial" hidden="true"
|
|
|
|
= "Loading"
|
|
|
|
|
2016-09-19 18:04:51 +00:00
|
|
|
== javascript_include_tag "all"
|
2016-12-13 03:13:38 +00:00
|
|
|
|
|
|
|
javascript:
|
|
|
|
$(window).enllax();
|
|
|
|
|
2017-01-06 08:06:40 +00:00
|
|
|
javascript:
|
|
|
|
$(window).scroll(function() {
|
|
|
|
var scroll = $(window).scrollTop();
|
|
|
|
var objectSelect = $('#icon-trigger');
|
|
|
|
var objectPosition = objectSelect.offset().top;
|
|
|
|
if (scroll > objectPosition) {
|
2017-01-06 21:21:45 +00:00
|
|
|
$('hr.first').addClass('stretch')
|
2017-01-06 08:06:40 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2017-01-06 21:21:45 +00:00
|
|
|
javascript:
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
var getMax = function(){
|
|
|
|
return $(document).height() - $(window).height();
|
|
|
|
}
|
|
|
|
|
|
|
|
var getValue = function(){
|
|
|
|
return $(window).scrollTop();
|
|
|
|
}
|
|
|
|
|
|
|
|
if('max' in document.createElement('progress')){
|
|
|
|
// Browser supports progress element
|
|
|
|
var progressBar = $('progress');
|
|
|
|
|
|
|
|
// Set the Max attr for the first time
|
|
|
|
progressBar.attr({ max: getMax() });
|
|
|
|
|
|
|
|
$(document).on('scroll', function(){
|
|
|
|
// On scroll only Value attr needs to be calculated
|
|
|
|
progressBar.attr({ value: getValue() });
|
|
|
|
});
|
|
|
|
|
|
|
|
$(window).resize(function(){
|
|
|
|
// On resize, both Max/Value attr needs to be calculated
|
|
|
|
progressBar.attr({ max: getMax(), value: getValue() });
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
var progressBar = $('.progress-bar'),
|
|
|
|
max = getMax(),
|
|
|
|
value, width;
|
|
|
|
|
|
|
|
var getWidth = function(){
|
|
|
|
// Calculate width in percentage
|
|
|
|
value = getValue();
|
|
|
|
width = (value/max) * 100;
|
|
|
|
width = width + '%';
|
|
|
|
return width;
|
|
|
|
}
|
|
|
|
|
|
|
|
var setWidth = function(){
|
|
|
|
progressBar.css({ width: getWidth() });
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).on('scroll', setWidth);
|
|
|
|
$(window).on('resize', function(){
|
|
|
|
// Need to reset the Max attr
|
|
|
|
max = getMax();
|
|
|
|
setWidth();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2016-09-19 18:04:51 +00:00
|
|
|
javascript:
|
|
|
|
$(document).foundation();
|
2016-09-23 13:26:22 +00:00
|
|
|
$('.try-demo').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
$('.inspec-tutorial').show()
|
2016-09-26 12:32:27 +00:00
|
|
|
window.dispatchEvent(new Event('resizeTerminal'));
|
2016-09-23 13:26:22 +00:00
|
|
|
$('.quit-inspec-tutorial').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
$('.inspec-tutorial').hide()
|
|
|
|
})
|
|
|
|
});
|
2016-09-26 17:31:55 +00:00
|
|
|
|
2017-01-07 00:03:24 +00:00
|
|
|
javascript:
|
|
|
|
$(document).ready(function() {
|
|
|
|
$("a").each(function() {
|
|
|
|
if (this.href == window.location.href) {
|
|
|
|
$(this).addClass("t-purple");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2016-09-26 17:31:55 +00:00
|
|
|
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()
|
|
|
|
}}();
|