Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\CSS\zh-CN\NewtonTheme\assets\newton.src.coffee
# CoffeeScript "use strict" Limit = window.Limit = {} if ! window.Limit? Limit.scrollToTop = (e) -> $(e).hide().removeAttr("href") if $(window).scrollTop() != "0" $(e).fadeIn("slow") scrollDiv = $(e) $(window).scroll () -> if ($(window).scrollTop() == "0") $(scrollDiv).fadeOut("slow") else $(scrollDiv).fadeIn("slow") $(e).click -> $("html, document").animate({ scrollTop: 0 }, "slow") true true Limit.setup = () -> # Open external link in new windows $('a[href^="http://"]').filter -> this.hostname && this.hostname != location.hostname .attr('target', '_blank') # build an animated footer $('#animated').each -> $(this).hover -> $(this).stop().animate({ opacity: 0.9 }, 400) ,-> $(this).stop().animate({ opacity: 0.0 }, 200) # scroll to top on request Limit.scrollToTop("a#totop") if $("a#totop").length # setup content boxes if $(".content-box").length $(".content-box .head").css({ "cursor": "s-resize" }) $(".content-box .body").slideUp() # Give the header in content-box a different cursor $(".content-box .head").toggle -> that = this $(this).parent().find('.body').slideDown 'slow' , -> $(that).find('.caption').toggleClass("content-box-closed") # Toggle the content , -> that = this $(this).parent().find('.body').slideUp 'slow' ,-> $(that).find('.caption').toggleClass("content-box-closed") # Toggle the content if $('#list-grid-toggle').length $('.list-toggle-btn').click (e) -> if $(e.currentTarget).hasClass("list-toggle-btn-up") $(e.currentTarget).toggleClass("list-toggle-btn-on list-toggle-btn-up") $('.grid-toggle-btn').toggleClass("grid-toggle-btn-on grid-toggle-btn-up") $('#list-grid-toggle').addClass("videolist-heng") e.preventDefault() $('.grid-toggle-btn').click (e) -> if $(e.currentTarget).hasClass("grid-toggle-btn-up") $('.list-toggle-btn').toggleClass("list-toggle-btn-on list-toggle-btn-up") $(e.currentTarget).toggleClass("grid-toggle-btn-on grid-toggle-btn-up") $('#list-grid-toggle').removeClass("videolist-heng") e.preventDefault() $ -> $('.toggle-info').slideUp('fast') $('.toggle-info-btn').toggle -> that = this $("#" + $(this).attr('rel')).slideDown 'slow', -> $(that).children().html('??????') ,-> that = this $("#" + $(this).attr('rel')).slideUp 'fast', -> $(that).children().html('??????') getInternetExplorerVersion = -> if navigator.appName == "Microsoft Internet Explorer" parseFloat RegExp.$1 if /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec navigator.userAgent ((doc) -> addEvent = 'addEventListener' type = 'gesturestart' qsa = 'querySelectorAll' scales = [1, 1] meta = if qsa in doc then doc[qsa]('meta[name=viewport]') else [] fix = -> meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1] doc.removeEventListener(type, fix, true) if (meta = meta[meta.length - 1]) && addEvent in doc fix scales = [0.25, 1.6] doc[addEvent](type, fix, true) )(document) is_ie = -> return (/MSIE/g).test(window.navigator.userAgent) is_windows= -> ua = navigator.userAgent.toLowerCase() return ua.indexOf('windows ') > 0 is_mac = -> return navigator.userAgent.indexOf("Mac") != -1 $ -> if $("#nav-category").length $(".nav-list:first a").click (e) -> if $(e.currentTarget).attr("data-target") != undefined # be fix at start with in $(".nav-list:first .nav-list .in").collapse "toggle" $(".nav-list:first .nav-list .collapse").filter(".in").collapse("hide") $(document).ready -> $(".flash_messages").filter () -> $(this).fadeIn if $("p", this).html != "message-here" # Global this.flashArray=[] window.flash = (str) -> tid = null temp = $(".flash_messages") $(".flash_messages").children("p").html str $(temp).fadeIn this.flashArray.push tid = setTimeout(-> $(temp).fadeOut -> tid = null true , 2000) $(document).ready -> if $(".oct").length > 0 $('.accordion-body').on('show', (e)-> $(e.currentTarget).parent().find('.accordion-heading').toggleClass('active') ) $('.accordion-body').on('hide', (e) -> $(e.currentTarget).parent().find('.accordion-heading').toggleClass('active') ) true $ -> $(".videos_with_mask .video_infos_mask").hide() $(".videos_with_mask > ul >li").hover -> target = this $(target).find(".video_infos_mask").toggle() , -> target = this $(target).find(".video_infos_mask").toggle() true #b = require('browserify').browserify() #b.external('/assets/_vendor/unslider/src/unslider.js')
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de