This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// When ESC is pressed | |
$(document).on('keyup',function(evt) { | |
if (evt.keyCode == 27) { | |
// Do what you need to do. | |
}; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content="{{ site_description }}"> | |
{{ if segment_1 == "products" }} | |
<title>{{ title ensure_right=" / " }}{{ site_name }}</title> | |
{{ else }} | |
<title>{{ title }}</title> | |
{{ /if }} | |
<link rel="stylesheet" href="{{ theme:css }}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
plumber = require('gulp-plumber'), | |
rename = require('gulp-rename'); | |
autoprefixer = require('gulp-autoprefixer'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
pugInheritance = require('gulp-pug-inheritance'), | |
pug = require('gulp-pug'), | |
//imagemin = require('gulp-imagemin'), | |
cache = require('gulp-cache'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <base> is nice, but it ruins anchors.. | |
// Let us rebuild him | |
$(document).ready(function() { | |
var pathname = window.location.href.split('#')[0]; | |
$('a[href^="#"]').each(function() { | |
var $this = $(this), | |
link = $this.attr('href'); | |
$this.attr('href', pathname + link); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:variable var="count" value="{!0}" /> | |
<apex:repeat> | |
<div id="{!count}">...</div> | |
<apex:variable value="{!count+1}" var="count"/> | |
</apex:repeat> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a data-toggle="popover" class="popper" data-placement="top">Link</a> | |
<div class="popover-content hide"> | |
<!-- Content --> | |
</div |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[data-style=help-popover] + .popover { | |
margin-left:-20px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## generic files to ignore | |
*~ | |
*.lock | |
*.DS_Store | |
*.swp | |
*.out | |
## SASS files | |
*.sass-cache | |
*.css.map |