Sha256: 2c43b2d935dd5dfab3fbe4e5c0d917726367c835ec45ff89620745fd898ca20e

Contents?: true

Size: 598 Bytes

Versions: 84

Compression:

Stored size: 598 Bytes

Contents

$(document).ready(function(){

 $('.dropdown-menu a').click(function(){
    $('#selected').html("Current Selection: <span class='bg-info text-white p-3 mb-2'>"+$(this).text()+"</span>");
  });

});


function removeAllSyntaxStyles(){
        $('link[rel=stylesheet][href*="syntax"]').remove();
}

function addStyle(themename) {
    $('<link>').attr('rel','stylesheet')
          .attr('type','text/css')
          .attr('href','css/syntax-'+themename+'.css')
          .appendTo('head');
}

function reaplyStyles(themename){
    removeAllSyntaxStyles();
    addStyle(themename);
    return true;
}

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
j1-template-2021.1.3 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.1.2 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.1.1 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.1.0 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.16 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.15 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.14 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.13 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.12 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.11 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.10 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.9 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.8 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.7 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.6 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.5 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.4 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.3 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.2 assets/themes/j1/modules/rouge/js/select.js
j1-template-2021.0.1 assets/themes/j1/modules/rouge/js/select.js