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 | |
| styleSheets = document.styleSheets, | |
| totalStyleSheets = styleSheets.length; | |
| for (var j = 0; j < totalStyleSheets; j++){ | |
| var | |
| styleSheet = styleSheets[j], | |
| rules = styleSheet.cssRules, | |
| totalRulesInStylesheet = rules.length, | |
| totalSelectorsInStylesheet = 0; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <span id="x"></span> | |
| <script id="jsbin-javascript"> | |
| // sometimes you just want to know when a variable changed |
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
| // instead of var results = YouTubeAnalytics.Reports.query(ids, start-date, end-date, metrics, optionalArgs); | |
| var params = {"method" : "post", | |
| "payload" : {'ids' : query.ids, | |
| "startDate" : startDate, | |
| "endDate": endDate, | |
| "metrics": query.metrics, | |
| "options": JSON.stringify(options) | |
| } | |
| }; | |
| var yt_data = UrlFetchApp.fetch("https://script.google.com/macros/s/YOUR_APP_ID/exec", params); |