Sha256: 52cc9c6b3678d5aec1e9cf33654453b6a984f190d266cdb8ae17bc0f3706b2a4

Contents?: true

Size: 1.21 KB

Versions: 45

Compression:

Stored size: 1.21 KB

Contents

/*
 # -----------------------------------------------------------------------------
 #  ~/assets/themes/j1/modules/rouge/js/select.js
 #  Rouge theme selector
 #
 #  Product/Info:
 #  https://jekyll.one
 #  https://github.com/rouge-ruby/rouge
 #
 #  Copyright (C) 2023 Juergen Adams
 #  Copyright (c) 2012 Jeanine Adkisson
 #
 #  J1 Theme is licensed under the MIT License.
 #  See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
 #  Rouge is licensed under the MIT License.
 #  See: https://github.com/rouge-ruby/rouge/blob/master/LICENSE
 # -----------------------------------------------------------------------------
*/

$(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

45 entries across 45 versions & 1 rubygems

Version Path
j1-template-2023.9.2 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.9.1 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.9.0 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.8.2 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.8.1 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.8.0 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.7.0 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.6.0 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.5.2 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.4.5 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.4.4 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.4.3 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.4.2 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.4.1 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.4.0 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.3.3 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.3.2 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.3.1 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.3.0 assets/themes/j1/modules/rouge/js/select.js
j1-template-2023.2.7 assets/themes/j1/modules/rouge/js/select.js