Project

General

Profile

« Previous | Next » 

Revision 60942

[Connect | Trunk]: Add smooth scroll for safari

View differences:

index.beta.html
56 56
      <link id="customCssfile" rel="stylesheet" href="">
57 57
      <style id="customCss">
58 58
      </style>
59
 </head>
60
 <body class="" style="">
59
   </head>
60
   <body class="" style="">
61
      <div class="uk-offcanvas-content uk-height-viewport">
62
         <app-root></app-root>
63
      </div>
64
   </body>
65
   <script type="text/javascript"  >
66
      function loadAltmetrics(e,t,n){
67
         var d="createElement",c="getElementsByTagName",m="setAttribute",n=document.getElementById(e);
68
         return n&&n.parentNode&&n.parentNode.removeChild(n),n=document[d+"NS"]&&document.documentElement.namespaceURI,n=n?document[d+"NS"](n,"script"):document[d]("script"),n[m]("id",e),n[m]("src",t),(document[c]("head")[0]||document[c]("body")[0]).appendChild(n),n=new Image,void n[m]("src","https://d1uo4w7k31k5mn.cloudfront.net/donut/0.png")
69
      }
61 70

  
62
   <div class="uk-offcanvas-content uk-height-viewport">
63

  
64
      <app-root></app-root>
65
    </div>
66

  
67

  
68
  <script type="text/javascript"  >
69
  function loadAltmetrics(e,t,n){
70
    var d="createElement",c="getElementsByTagName",m="setAttribute",n=document.getElementById(e);
71
    return n&&n.parentNode&&n.parentNode.removeChild(n),n=document[d+"NS"]&&document.documentElement.namespaceURI,n=n?document[d+"NS"](n,"script"):document[d]("script"),n[m]("id",e),n[m]("src",t),(document[c]("head")[0]||document[c]("body")[0]).appendChild(n),n=new Image,void n[m]("src","https://d1uo4w7k31k5mn.cloudfront.net/donut/0.png")
72
  };
73

  
74
  function appendCss(customData) {
75
      if (typeof customData != "undefined")
76
          $(document).ready(function () {
77
    /*          var link = $("<style>");
78
              link.attr({
79
                  type: 'text/css',
71
      function appendCss(customData) {
72
         if (typeof customData != "undefined")
73
            $(document).ready(function () {
74
               /*          var link = $("<style>");
75
                         link.attr({
76
                             type: 'text/css',
77
                             rel: 'stylesheet',
78
                             id: "customCss",
79
                         });
80
                         $("head").append(link);
81
                         $("#customCss").append(customData);*/
82
               //TODO uncomment above and remove the following once customization is up to date
83
               var link = $("<link>");
84
               link.attr({
80 85
                  rel: 'stylesheet',
81 86
                  id: "customCss",
82
              });
83
              $("head").append(link);
84
              $("#customCss").append(customData);*/
85
              //TODO uncomment above and remove the following once customization is up to date
86
              var link = $("<link>");
87
              link.attr({
88
                  rel: 'stylesheet',
89
                  id: "customCss",
90 87
                  href:"/assets/customization.css"
91
              });
92
              $("head").append(link);
93
              $("#customCss").append(customData);
94
          });
95
  }
96

  
97
</script>
98
   </body>
88
               });
89
               $("head").append(link);
90
               $("#customCss").append(customData);
91
            });
92
      }
93
   </script>
94
   <script src="https://unpkg.com/smoothscroll-polyfill@0.4.3/dist/smoothscroll.min.js"></script>
99 95
</html>

Also available in: Unified diff