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
let cssArray = []; | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
var styleSheet = document.styleSheets[i]; | |
for (var j = 0; j < 1; j++) { | |
let cssRules = styleSheet.cssRules; | |
for (var n = 0; n < cssRules.length; n++) { | |
cssArray.push(cssRules[n].selectorText); | |
} |
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
//should speak in a british voice | |
// https://developers.google.com/web/updates/2014/01/Web-apps-that-talk-Introduction-to-the-Speech-Synthesis-API | |
var msg = new SpeechSynthesisUtterance(); | |
var voices = window.speechSynthesis.getVoices(); | |
msg.voice = voices[4]; // Note: some voices don't support altering params | |
msg.voiceURI = 'native'; | |
msg.volume = 1; // 0 to 1 | |
msg.rate = 1; // 0.1 to 10 | |
msg.pitch = 1; //0 to 2 | |
msg.text = ' This is a test'; |
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
// Z-index mapping: Correctly place your variable in the correct position based on what it should appear above and behind. | |
// Example usage: z-index: z(header); | |
$z-list: ( | |
highest, | |
lowest | |
); | |
@function z($var) { |