PHP Classes
elePHPant
Icontem

File: src/Cabin/Bridge/public/files_info.js

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/public/files_info.js  >  Download  
File: src/Cabin/Bridge/public/files_info.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 2 years ago
Size: 610 bytes
 

Contents

Class file image Download
$(document).ready(function() {

    $("#bridge_files_info_img_nav_html").addClass("active");
    $("#bridge_files_info_img_markdown").hide();
    $("#bridge_files_info_img_rst").hide();

    $("#bridge_files_info_img_nav > li").on('click', function() {
        var format = $(this).data('format');
        $("#bridge_files_info_img_nav > li")
            .removeClass('active');

        $("#bridge_files_info_img_nav_" + format.toLowerCase())
            .addClass('active');

        $("#bridge_files_info_img_code div").hide();
        $("#bridge_files_info_img_" + format.toLowerCase()).show();
    });
});