Advertisement
gyrospring

✒ 0014.0002 global-1.2.js

Jul 8th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. /* v1.2 https://pastebin.com/9T62rWuG
  2. Help: https://awwshop.github.io/project/shared/script/library/global/global-ext-js/1.2
  3. License: Public Domain
  4. */
  5.  
  6.  
  7.  
  8.  
  9. var Global = new function () {
  10.  
  11.  
  12.  
  13.  
  14. this.AddAsset = function ( TypeIn, PathIn ) {
  15.  
  16.  
  17. if ( TypeIn == 'style' ) {
  18.  
  19. document.write( '<style> @import url(' + PathIn + '); </style>' );
  20.  
  21. } else if ( TypeIn == 'script' ) {
  22.  
  23. document.write( '<script src="' + PathIn + '"></script>' );
  24.  
  25. }
  26.  
  27.  
  28. }
  29.  
  30.  
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement