Difference between revisions of "Template:Team:Judd UK/TEMPLATE"

Line 61: Line 61:
 
         qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}});
 
         qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}});
 
         if(qs(".JC #content-body").innerHTML.includes("#TABLE!")){
 
         if(qs(".JC #content-body").innerHTML.includes("#TABLE!")){
         qs(".JC #content-body").innerHTML = qs(".JC #content-body").innerHTML.replace("#TABLE!","<table style='width:100%'><tr><th>Heading 1</th><th>Heading 2</th><th>Heading 3</th></tr><tr><td>Data 1</td><td>Data 2</td><td>Data 3</td></tr><tr><td>Data 4</td><td>Data 5</td><td>Data 6</td></tr></table>");}
+
         qs(".JC #content-body").innerHTML = qs(".JC #content-body").innerHTML.replace("#TABLE!","<table style='width:100%'><tr><td>Heading 1</td><td>Heading 2</td><td>Heading 3</td></tr><tr><td>Data 1</td><td>Data 2</td><td>Data 3</td></tr><tr><td>Data 4</td><td>Data 5</td><td>Data 6</td></tr></table>");}
 
     };
 
     };
 
     var safety = page;
 
     var safety = page;

Revision as of 23:25, 29 October 2017

Contents

Designed by Aleksandur Murfitt