nabble_javascript_libraries

NAML documentation   Watch a video
   Usages of this macro
... in nabble_javascript_libraries.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<override_macro name="nabble_javascript_libraries">
    <n.jquery_library
Macro
/>
    <script src="/util/nabbledropdown-2.4.1.js" type="text/javascript"></script>
    <script src="[n.javascript_library_path
Macro
/]" type="text/javascript"></script>
    
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-rss/3.3.0/jquery.rss.js"></script>
  <script>
    jQuery(function($) {
      $("#rss-feeds").rss("https://forum.acceptbc.ca/Forum-ft1.xml",
      {
        limit: 4,
        effect: 'show',
         ssl: true,
        entryTemplate:'<li><a href="{url}" style="text-decoration: none; color:grey;font-weight: bold;"> {title} by {author}</a> </li>'
      })
    })
      
 
      
      
    
      
  $(document).ready(function () {
      var counter = 0;
if (window.location.href =="https://forum.acceptbc.ca/"){
      $(".action-link").remove();
      
      }else{
      
           $(document).scroll(function(){
        if ($(this).scrollTop() >150 ){
            // animate fixed div to small size:
            $('#headercontainer').stop().animate({ height: 70, 'padding-top':0},100);
            $("#toplogo").width(156.65).height(57.97);
        } else {
            //  animate fixed div to original size
            $('#headercontainer').stop().animate({ height: 90, 'padding-top': 0},100);
             $("#toplogo").width(195.81).height(72.46);
        }
    });  
      
      
      
      }
      
      if (localStorage.getItem("counter") !=1){
      $("#popup").hide().fadeIn(1000);
 
 
      }
      
  
  
    $("#close").on("click", function (e) {
        e.preventDefault();
        $("#popup").fadeOut(1000);
    });
   
      document.getElementById("read").onclick = function () {
        location.href = "https://forum.acceptbc.ca/Forum-Rules-td24.html";
      localStorage.setItem("counter", "1");
    };   
 
   
      
});
     
 
      
      
      
     
  </script>
    
 
    
    
    
    
    
</override_macro>
Overrides default macro
... in utilities.naml
80
81
82
83
84
<macro name="nabble_javascript_libraries">
    <n.jquery_library/>
    <script src="/util/nabbledropdown-2.4.1.js" type="text/javascript"></script>
    <script src="[n.javascript_library_path/]" type="text/javascript"></script>
</macro>