MyOAExx/Scripts/js/main.js

(开头部分) 14KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

jQuery(function($){
    
     /**
     * Initialize zoombox on every link with zoombox class
     * http://www.grafikart.fr/zoombox - Developped by me 
     * */
     $('a.zoombox').zoombox({
         animation:false
     }); 
    
     /**
     * Slide toggle for blocs
     * */
     $('.bloc .title').append('<a href="#" class="toggle"></a>');
     $('.bloc .title .tabs').parent().find('.toggle').remove(); 
     $('.bloc .title .toggle').click(function(){
         $(this).toggleClass('hide').parent().parent().find('.content').slideToggle(300);
         return false; 
     });
     
     /**
      *  Visual Editor for textarea
      *  https://github.com/akzhan/jwysiwyg/
      * */
     $('.wysiwyg').wysiwyg({
        autoGrow: true,
        maxHeight: 600
     });
    
    /**
     * Tooltips on every links with a title not empty
     * http://tooltipsy.com/
     * */
     $('a[title!=""]').tooltipsy();
    
    /**
     * Create charts from table with "graph" class, Use graph-:type class to define chart type
     * http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/
     **/ 
     $('table.graph').each(function(){
         var matches = $(this).attr('class').split(/type\-(area|bar|pie|line)/g);
         var options = {
             height:'300px',
             width : parseInt($(this).width())-100,
             colors :['#c21c1c','#f1dc2b','#9ccc0a','#0accaa','#0a93cc','#8734c8','#26a4ed','#f45a90','#e9e744']
         };
         if(matches[1] != undefined){
             options.type = matches[1];
         }
         if($(this).hasClass('dots')){
           options.lineDots = 'double';
         }
          if($(this).hasClass('tips')){
            options.interaction =  true;
            options.multiHover  = 15,
            options.tooltip     =  true,
            options.tooltiphtml = function(data) {
                    var html ='';
                    for(var i=0; i<data.point.length; i++){
                            console.log(data.point); 
后面还有 378 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。