This file contains 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
Show hidden characters
{ | |
"search_colors_in": | |
{ | |
"all_content": | |
{ | |
"color_highlighters": | |
{ | |
"color_scheme": | |
{ | |
"enabled": true, |
This file contains 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 iOS = (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false); | |
console.log('Is the userAgent iOS: ' + iOS); | |
if (iOS) { | |
console.log('The userAgent is probably iOS'); | |
$('html').addClass('mobile-safari'); | |
} else { | |
console.log('This userAgent aint no iOS'); | |
} |
This file contains 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
#dev-tools { | |
background: rgba(51,53,44,.95); | |
border-bottom: 1px solid rgba(255,255,255,.2); | |
color: rgba(228,223,112,1); | |
display: none; | |
font-family: 'Courier', monospace; | |
font-size: 1.4em; | |
padding: 12px; | |
position: fixed; | |
top: 0; |
This file contains 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 viewportX = $(window).width(); | |
var viewportY = $(window).height(); | |
var docY = $(document).height(); | |
$('body').append('<div id=\"dev-tools\"></div>'); | |
$('#dev-tools').css('display', 'block').html('<span class="alt-color">width:</span>' + viewportX + 'px <span class="alt-color">height:</span>' + viewportY + 'px <span class="alt-color">docHeight:</span> ' + docY + 'px'); | |
$(window).resize(function () { | |
var viewportX = $(window).width(); |