-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bc7ef3
commit 7c9e8f6
Showing
319 changed files
with
74,216 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
(function(doc){ | ||
var scriptElm = doc.scripts[doc.scripts.length - 1]; | ||
var warn = ['[calcite] Deprecated script, please remove: ' + scriptElm.outerHTML]; | ||
|
||
warn.push('To improve performance it is recommended to set the differential scripts in the head as follows:') | ||
|
||
var parts = scriptElm.src.split('/'); | ||
parts.pop(); | ||
parts.push('calcite'); | ||
var url = parts.join('/'); | ||
|
||
var scriptElm = doc.createElement('script'); | ||
scriptElm.setAttribute('type', 'module'); | ||
scriptElm.src = url + '/calcite.esm.js'; | ||
warn.push(scriptElm.outerHTML); | ||
scriptElm.setAttribute('data-stencil-namespace', 'calcite'); | ||
doc.head.appendChild(scriptElm); | ||
|
||
scriptElm = doc.createElement('script'); | ||
scriptElm.setAttribute('nomodule', ''); | ||
scriptElm.src = url + '/calcite.js'; | ||
warn.push(scriptElm.outerHTML); | ||
scriptElm.setAttribute('data-stencil-namespace', 'calcite'); | ||
doc.head.appendChild(scriptElm); | ||
|
||
console.warn(warn.join('\n')); | ||
|
||
})(document); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.