diff --git a/public/_includes/_util-fns.jade b/public/_includes/_util-fns.jade
index 7a3c7268d9..d5274d903e 100644
--- a/public/_includes/_util-fns.jade
+++ b/public/_includes/_util-fns.jade
@@ -46,7 +46,64 @@ mixin makeJson( filePath, jsonConfig, title, stylePatterns)
else
!= styleString(jsonExtract, stylePatterns)
+- // Open (and close) an explanation
. See QuickStart
+script.
+ function why(id, backTo) {
+ var id = "#"+id;
+ var el = document.querySelector(id);
+ el.hidden=el.hidden=!el.hidden;
+ if (el.hidden && backTo){
+ // the next line is required to work around a bug in WebKit (Chrome / Safari)
+ location.href = "#";
+ location.href = "#" + backTo;
+ }
+ }
+script.
+ function verbose(isVerbose) {
+ isVerbose = !! isVerbose;
+ var el = document.querySelector('button.verbose.off');
+ el.style.display = isVerbose ? 'block' : 'none';
+ var el = document.querySelector('button.verbose.on');
+ el.style.display = isVerbose ? 'none' : 'block';
+
+ CCSStylesheetRuleStyle('main','.l-verbose-section', 'display',
+ isVerbose ? 'block' : 'none');
+ }
+
+script.
+ function CCSStylesheetRuleStyle(stylesheet, selectorText, style, value){
+ /* returns the value of the element style of the rule in the stylesheet
+ * If no value is given, reads the value
+ * If value is given, the value is changed and returned
+ * If '' (empty string) is given, erases the value.
+ * The browser will apply the default one
+ *
+ * string stylesheet: part of the .css name to be recognized, e.g. 'default'
+ * string selectorText: css selector, e.g. '#myId', '.myClass', 'thead td'
+ * string style: camelCase element style, e.g. 'fontSize'
+ * string value optional : the new value
+ */
+ var CCSstyle = undefined, rules, sheet;
+ for(var m in document.styleSheets){
+ sheet = document.styleSheets[m];
+ if(sheet.href && sheet.href.indexOf(stylesheet) != -1){
+ rules = sheet[document.all ? 'rules' : 'cssRules'];
+ for(var n in rules){
+ console.log(rules[n].selectorText);
+ if(rules[n].selectorText == selectorText){
+ CCSstyle = rules[n].style;
+ break;
+ }
+ }
+ break;
+ }
+ }
+ if(value == undefined)
+ return CCSstyle[style]
+ else
+ return CCSstyle[style] = value
+ }
//---------------------------------------------------------------------------------------------------------
- var translatePath = function(filePath, region) {
- filePath = filePath.trim();
@@ -134,6 +191,7 @@ mixin makeJson( filePath, jsonConfig, title, stylePatterns)
- return source;
- }
+
- var getFragFilePath = function (filePath, region) {
- filePath = filePath.trim();
- var extn = getExtn(filePath);
diff --git a/public/docs/_examples/quickstart/ts/index.html b/public/docs/_examples/quickstart/ts/index.html
index 40c8b29dd5..21b3a60713 100644
--- a/public/docs/_examples/quickstart/ts/index.html
+++ b/public/docs/_examples/quickstart/ts/index.html
@@ -36,7 +36,6 @@
.then(null, console.error.bind(console));
-
@@ -45,5 +44,4 @@
Loading...