{"dependencies":[{"name":"/Users/patjohnson/Library/Application Support/Firefox/Profiles/1kv6zqic.hardened/chrome/ShadowFox/website/package.json","includedInParent":true,"mtime":1526977575000},{"name":"jquery","loc":{"line":1,"column":35}},{"name":"waypoints/lib/jquery.waypoints","loc":{"line":2,"column":8}},{"name":"lazysizes","loc":{"line":3,"column":8}},{"name":"codemirror","loc":{"line":4,"column":25}},{"name":"codemirror/mode/css/css","loc":{"line":5,"column":8}},{"name":"magnific-popup","loc":{"line":6,"column":8}},{"name":"html5shiv","loc":{"line":7,"column":8}}],"generated":{"js":"window.jQuery=window.$=require(\"jquery\"),require(\"waypoints/lib/jquery.waypoints\"),require(\"lazysizes\");var e=require(\"codemirror\");require(\"codemirror/mode/css/css\"),require(\"magnific-popup\"),require(\"html5shiv\"),window.File&&window.FileReader&&window.FileList&&window.Blob||alert(\"The File APIs are not fully supported in this browser.\");var o=new window.Waypoint({element:document.getElementsByClassName(\"js--section-features\"),handler:function(e){\"down\"==e?$(\"nav\").addClass(\"sticky\"):$(\"nav\").removeClass(\"sticky\")},offset:\"60px\"});o=new window.Waypoint({element:document.getElementsByClassName(\"js--wp-1\"),handler:function(e){$(\".js--wp-1\").addClass(\"animated fadeIn\")},offset:\"50%\"}),o=new window.Waypoint({element:document.getElementsByClassName(\"js--wp-4\"),handler:function(e){$(\".js--wp-4\").addClass(\"animated pulse\")},offset:\"50%\"});function t(e){var o=$(e);o.hasClass(\"ion-ios-arrow-right\")?(o.addClass(\"ion-ios-arrow-down\"),o.removeClass(\"ion-ios-arrow-right\")):(o.addClass(\"ion-ios-arrow-right\"),o.removeClass(\"ion-ios-arrow-down\"))}$(\".js--scroll-to-plans\").click(function(){$(\"html, body\").animate({scrollTop:$(\".js--section-plans\").offset().top},1e3)}),$(\".js--scroll-to-start\").click(function(){$(\"html, body\").animate({scrollTop:$(\".js--section-features\").offset().top},1e3)}),$(function(){$(\"a[href*=\\\\#]:not([href=\\\\#])\").click(function(){if(location.pathname.replace(/^\\//,\"\")==this.pathname.replace(/^\\//,\"\")&&location.hostname==this.hostname){var e=$(this.hash);if((e=e.length?e:$(\"[name=\"+this.hash.slice(1)+\"]\")).length)return $(\"html,body\").animate({scrollTop:e.offset().top},1e3),!1}})}),$(\".js--nav-icon, .js--main-nav a, .logo-black\").click(function(e){var o=$(\".js--main-nav\"),t=$(\".js--nav-icon i\"),n=e.target.className;t.hasClass(\"ion-navicon-round\")&&\"logo-black\"==n||($(window).width()<768&&o.slideToggle(200),t.hasClass(\"ion-navicon-round\")?(t.addClass(\"ion-close-round\"),t.removeClass(\"ion-navicon-round\")):(t.addClass(\"ion-navicon-round\"),t.removeClass(\"ion-close-round\")))}),$(window).resize(function(){var e=$(\".js--main-nav\"),o=$(\".js--nav-icon i\");$(window).width()>767?(e.css(\"display\",\"block\"),o.addClass(\"ion-close-round\"),o.removeClass(\"ion-navicon-round\")):(e.css(\"display\",\"none\"),o.addClass(\"ion-navicon-round\"),o.removeClass(\"ion-close-round\"))}),$(\".js--arrow-icon-1\").click(function(){t(\".js--arrow-icon-1 i\")}),$(\".js--arrow-icon-2\").click(function(){t(\".js--arrow-icon-2 i\")}),$(\".js--arrow-icon-3\").click(function(){t(\".js--arrow-icon-3 i\")}),$(\".js--arrow-icon-4\").click(function(){t(\".js--arrow-icon-4 i\")}),$(\".js--arrow-icon-5\").click(function(){t(\".js--arrow-icon-5 i\")});var n=$(\".codemirror-textarea\")[0],s=e.fromTextArea(n,{lineNumbers:!0,mode:\"css\",theme:\"shadowfox\"}),a=(n=$(\".codemirror-textarea\")[1],e.fromTextArea(n,{lineNumbers:!0,mode:\"css\",theme:\"shadowfox\",readOnly:!0}));function r(e,o){var t=new XMLHttpRequest;t.open(\"GET\",e,!1),t.onreadystatechange=function(){4===t.readyState&&(200!==t.status&&0!=t.status||i(t.responseText,o))},t.send(null)}function i(e,o){var t=$(\".CodeMirror\")[o].CodeMirror.getDoc(),n=t.getCursor(),s=t.getLine(n.line),a={line:n.line};0===s.length?t.replaceRange(e,a):t.replaceRange(\"\\n\"+e,a)}function c(e,o,t){var n=new Blob([e],{type:t});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,o);else{var s=document.createElement(\"a\"),a=URL.createObjectURL(n);s.href=a,s.download=o,document.body.appendChild(s),s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(a)},0)}}$(document).on(\"click\",\".btn-insert-text\",function(){var e=\"/* GPL-3.9 Copyright (C) 2007 Timvde/UserChrome-Tweaks; Code pulled from https://github.com/Timvde/UserChrome-Tweaks */\",o={\"#roundedTabs\":[\"https://raw.githubusercontent.com/wilfredwee/photon-australis/master/userChrome-dark.css\",\"/* MIT Copyright (c) 2017 Wilfred Wee; Code pulled from https://raw.githubusercontent.com/wilfredwee/photon-australis/master/userChrome-dark.css */\"],\"#hideSidebar\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/sidebar/auto-hide-sidebar.css\",e],\"#bookmarksNewTab\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/toolbars/show-bookmarks-only-on-newtab.css\",e],\"#closeHover\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/close-button-hover.css\",e],\"#greyscaleFavicons\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/grayscale-favicon.css\",e],\"#hideFavicons\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/hide-favicons.css\",e],\"#bottomMacos\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/tabs-on-bottom-macOS.css\",e],\"#leftClose\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/x-on-left.css\",e],\"#autoHide\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/toolbars/auto-hide.css\",e],\"#slidingBookmarks\":[\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/toolbars/sliding-bookmarks-bar.css\",e]};for(var t in o)if(1==$(t).prop(\"checked\")){var n=o[t][0];i(o[t][1],1),r(n,1)}}),$(document).on(\"click\",\".insert-color\",function(){var e=document.getElementById(\"accent-1\").value,o=document.getElementById(\"accent-2\").value,t=document.getElementById(\"accent-3\").value,n=document.getElementById(\"shade\").value;\"#45a1ff\"!=e&&i(\"--accent-1: \"+e+\";\",0),\"#0a84ff\"!=o&&i(\"--accent-2: \"+o+\";\",0),\"#0060df\"!=t&&i(\"--accent-3: \"+t+\";\",0),\"darker\"==n&&(i(\"--tone-1: var(--grey-20);\",0),i(\"--tone-2: var(--grey-30);\",0),i(\"--tone-3: var(--grey-40);\",0),i(\"--tone-4: var(--grey-50);\",0),i(\"--tone-5: var(--grey-60);\",0),i(\"--tone-6: var(--grey-70);\",0),i(\"--tone-7: var(--grey-80);\",0),i(\"--tone-8: var(--grey-90);\",0),i(\"--tone-8: #fff;\",0))}),$(document).on(\"click\",\".btn-remove-text\",function(){s.getDoc().setValue(\"\")}),$(document).on(\"click\",\".btn-remove-code\",function(){a.getDoc().setValue(\"\")}),$(document).on(\"click\",\".clear-boxes\",function(){$(\".chrome-options input[type=checkbox]\").prop(\"checked\",!1)}),$(document).on(\"click\",\".clear-colors\",function(){document.getElementById(\"accent-1\").value=\"#45a1ff\",document.getElementById(\"accent-2\").value=\"#0a84ff\",document.getElementById(\"accent-3\").value=\"#0060df\",document.getElementById(\"shade\").value=\"default\"}),$(document).on(\"click\",\".download-css\",function(){c(s.getValue(),\"colorOverrides.css\",\"css\")}),$(document).on(\"click\",\".download-css-2\",function(){c(a.getValue(),\"userChrome_customization.css\",\"css\")});var l=document.getElementsByClassName(\"popup-gallery\");$(l).magnificPopup({delegate:\"a\",type:\"image\",tLoading:\"Loading image #%curr%...\",mainClass:\"mfp-img-mobile\",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'The image #%curr% could not be loaded.',titleSrc:function(e){return e.el.attr(\"title\")+\"by Pat Johnson\"}}});var d,m=document.getElementsByClassName(\"collapsible\");for(d=0;d 767){\n nav.css(\"display\", \"block\");\n icon.addClass('ion-close-round');\n icon.removeClass('ion-navicon-round');\n } else {\n nav.css(\"display\", \"none\");\n icon.addClass('ion-navicon-round');\n icon.removeClass('ion-close-round');\n }\n});\n\n\n/* Arrow Flip */\nfunction switchArrow(arrow) {\n var icon = $(arrow);\n if (icon.hasClass('ion-ios-arrow-right')) {\n icon.addClass('ion-ios-arrow-down');\n icon.removeClass('ion-ios-arrow-right');\n } else {\n icon.addClass('ion-ios-arrow-right');\n icon.removeClass('ion-ios-arrow-down');\n }\n}\n\n$('.js--arrow-icon-1').click(function() {\n switchArrow('.js--arrow-icon-1 i');\n});\n$('.js--arrow-icon-2').click(function() {\n switchArrow('.js--arrow-icon-2 i');\n});\n$('.js--arrow-icon-3').click(function() {\n switchArrow('.js--arrow-icon-3 i');\n});\n$('.js--arrow-icon-4').click(function() {\n switchArrow('.js--arrow-icon-4 i');\n});\n$('.js--arrow-icon-5').click(function() {\n switchArrow('.js--arrow-icon-5 i');\n});\n\n\nvar code = $('.codemirror-textarea')[0];\nvar editor_1 = CodeMirror.fromTextArea(code, {\n lineNumbers: true,\n mode: \"css\",\n theme: \"shadowfox\"\n});\n\nvar code = $('.codemirror-textarea')[1];\nvar readOnlyColors = CodeMirror.fromTextArea(code, {\n lineNumbers: true,\n mode: \"css\",\n theme: \"shadowfox\",\n readOnly: true\n});\n\n$(document).on('click', '.btn-insert-text', function() {\n var uct = \"/* GPL-3.9 Copyright (C) 2007 Timvde/UserChrome-Tweaks; Code pulled from https://github.com/Timvde/UserChrome-Tweaks */\"\n var dict = {\n '#roundedTabs': [\"https://raw.githubusercontent.com/wilfredwee/photon-australis/master/userChrome-dark.css\", \"/* MIT Copyright (c) 2017 Wilfred Wee; Code pulled from https://raw.githubusercontent.com/wilfredwee/photon-australis/master/userChrome-dark.css */\"],\n '#hideSidebar': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/sidebar/auto-hide-sidebar.css\", uct],\n '#bookmarksNewTab': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/toolbars/show-bookmarks-only-on-newtab.css\", uct],\n '#closeHover': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/close-button-hover.css\", uct],\n '#greyscaleFavicons': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/grayscale-favicon.css\", uct],\n '#hideFavicons': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/hide-favicons.css\", uct],\n '#bottomMacos': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/tabs-on-bottom-macOS.css\", uct],\n '#leftClose': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/tabs/x-on-left.css\", uct],\n '#autoHide': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/toolbars/auto-hide.css\", uct],\n '#slidingBookmarks': [\"https://raw.githubusercontent.com/Timvde/UserChrome-Tweaks/master/toolbars/sliding-bookmarks-bar.css\", uct]\n }\n\n for (var key in dict) {\n if ($(key).prop('checked') == true) {\n var url = dict[key][0];\n var licence = dict[key][1];\n insertText(licence, 1)\n readTextFile(url, 1)\n }\n }\n})\n\nfunction readTextFile(file, num) {\n var rawFile = new XMLHttpRequest();\n rawFile.open(\"GET\", file, false);\n rawFile.onreadystatechange = function() {\n if (rawFile.readyState === 4) {\n if (rawFile.status === 200 || rawFile.status == 0) {\n var allText = rawFile.responseText;\n insertText(allText, num);\n }\n }\n }\n rawFile.send(null);\n}\n\n/* Get primary color */\n$(document).on('click', '.insert-color', function() {\n var accent1 = document.getElementById(\"accent-1\").value;\n var accent2 = document.getElementById(\"accent-2\").value;\n var accent3 = document.getElementById(\"accent-3\").value;\n var shade = document.getElementById(\"shade\").value;\n if (accent1 != \"#45a1ff\") {\n insertText(\"--accent-1: \" + accent1 + \";\", 0);\n }\n if (accent2 != \"#0a84ff\") {\n insertText(\"--accent-2: \" + accent2 + \";\", 0);\n }\n if (accent3 != \"#0060df\") {\n insertText(\"--accent-3: \" + accent3 + \";\", 0);\n }\n if (shade == \"darker\") {\n insertText(\"--tone-1: var(--grey-20);\", 0);\n insertText(\"--tone-2: var(--grey-30);\", 0);\n insertText(\"--tone-3: var(--grey-40);\", 0);\n insertText(\"--tone-4: var(--grey-50);\", 0);\n insertText(\"--tone-5: var(--grey-60);\", 0);\n insertText(\"--tone-6: var(--grey-70);\", 0);\n insertText(\"--tone-7: var(--grey-80);\", 0);\n insertText(\"--tone-8: var(--grey-90);\", 0);\n insertText(\"--tone-8: #fff;\", 0);\n }\n\n})\n\n\n// Begin inputting of clicked text into editor\nfunction insertText(data, num) {\n var cm = $(\".CodeMirror\")[num].CodeMirror;\n var doc = cm.getDoc();\n var cursor = doc.getCursor(); // gets the line number in the cursor position\n var line = doc.getLine(cursor.line); // get the line contents\n var pos = {\n line: cursor.line\n };\n if (line.length === 0) {\n // check if the line is empty\n // add the data\n doc.replaceRange(data, pos);\n } else {\n // add a new line and the data\n doc.replaceRange(\"\\n\" + data, pos);\n }\n}\n\n/* Clear Code Editor */\n$(document).on('click', '.btn-remove-text', function() {\n editor_1.getDoc().setValue('');\n})\n\n/* Clear Code Editor */\n$(document).on('click', '.btn-remove-code', function() {\n readOnlyColors.getDoc().setValue('');\n})\n\n/* Clear Checkboxes */\n$(document).on('click', '.clear-boxes', function() {\n $('.chrome-options input[type=checkbox]').prop('checked', false);\n})\n\n/* Reset Colors */\n$(document).on('click', '.clear-colors', function() {\n document.getElementById(\"accent-1\").value = \"#45a1ff\";\n document.getElementById(\"accent-2\").value = \"#0a84ff\";\n document.getElementById(\"accent-3\").value = \"#0060df\";\n document.getElementById(\"shade\").value = \"default\";\n})\n\n// Function to download data to a file\nfunction download(data, filename, type) {\n var file = new Blob([data], {\n type: type\n });\n if (window.navigator.msSaveOrOpenBlob) // IE10+\n window.navigator.msSaveOrOpenBlob(file, filename);\n else { // Others\n var a = document.createElement(\"a\"),\n url = URL.createObjectURL(file);\n a.href = url;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n setTimeout(function() {\n document.body.removeChild(a);\n window.URL.revokeObjectURL(url);\n }, 0);\n }\n}\n\n/* Download CSS */\n$(document).on('click', '.download-css', function() {\n var data = editor_1.getValue();\n download(data, \"colorOverrides.css\", \"css\")\n})\n\n$(document).on('click', '.download-css-2', function() {\n var data = readOnlyColors.getValue();\n download(data, \"userChrome_customization.css\", \"css\")\n})\n\nvar gal = document.getElementsByClassName(\"popup-gallery\");\n$(gal).magnificPopup({\n delegate: 'a',\n type: 'image',\n tLoading: 'Loading image #%curr%...',\n mainClass: 'mfp-img-mobile',\n gallery: {\n enabled: true,\n navigateByImgClick: true,\n preload: [0, 1] // Will preload 0 - before current, and 1 after the current image\n },\n image: {\n tError: 'The image #%curr% could not be loaded.',\n titleSrc: function(item) {\n return item.el.attr('title') + 'by Pat Johnson';\n }\n }\n});\n\nvar coll = document.getElementsByClassName(\"collapsible\");\nvar i;\n\nfor (i = 0; i < coll.length; i++) {\n coll[i].addEventListener(\"click\", function() {\n this.classList.toggle(\"active\");\n var content = this.nextElementSibling;\n if (content.style.maxHeight) {\n content.style.maxHeight = null;\n } else {\n content.style.maxHeight = \"29000000px\";\n }\n });\n}\n"},"lineCount":null}},"hash":"627e530288f288ca6969ea2319622c34","cacheData":{"env":{}}}