'); base.$el.data("AnythingSlider", base); base.init = function(){ base.options = o = $.extend({}, $.anythingSlider1.defaults, options); base.initialized = false; if ($.isFunction(o.onBeforeInitialize)) { base.$el.bind('before_initialize', o.onBeforeInitialize); } base.$el.trigger('before_initialize', base); base.$wrapper = base.$el.parent().closest('div.anythingSlider1').addClass('anythingSlider1-' + o.theme); base.$window = base.$el.closest('div.anythingWindow'); base.$controls = $('').appendTo( (o.appendControlsTo !== null && $(o.appendControlsTo).length) ? $(o.appendControlsTo) : پایان بررسی آئین نامه پیام رسان های داخلی خارجی base.$wrapper); base.win = window; base.$win = $(base.win); base.$nav = $('').appendTo(base.$controls); base.flag = false; base.playing = false; base.slideshow = false; base.hovered = false; base.panelSize = []; base.currentPage = o.startPanel = parseInt(o.startPanel,10) || 1; base.adjustLimit = (o.infiniteSlides) ? 0 : 1; base.outerPad = [ base.$wrapper.innerWidth() - base.$wrapper.width(), base.$wrapper.innerHeight() - base.$wrapper.height() ]; if (o.playRtl) { base.$wrapper.addClass('ltr'); } base.original = [ o.autoPlay, o.buildNavigation, o.buildArrows]; if (o.expand) { base.$outer = base.$wrapper.parent(); base.$window.css({ width: '100%', height: '100%' }); base.outerDim = [ base.$outer.width(), base.$outer.height() ]; base.checkResize(); } base.updateSlider(); base.$lastPage = base.$currentPage; base.runTimes = $('div.anythingSlider1').index(base.$wrapper) + 1; base.regex = new RegExp('panel' + base.runTimes + '-(\d+)', 'i'); if (!$.isFunction($.easing[o.easing])) { o.easing = "swing"; } if (o.pauseOnHover) { base.$wrapper.hover(function() { if (base.playing) { base.$el.trigger('slideshow_paused', base); base.clearTimer(true); } }, function() { if (base.playing) { base.$el.trigger('slideshow_unpaused', base); base.startStop(base.playing, true); } }); } var triggers, startPanel = (o.hashTags) ? base.gotoHash() || o.startPanel : o.startPanel; base.setCurrentPage(startPanel, false); // added to trigger events for FX code base.slideControls(false); base.$wrapper.bind('mouseenter mouseleave', function(e){ base.hovered = (e.type === "mouseenter") ? true : false; base.slideControls( base.hovered, false ); }); if (o.enableKeyboard) { $(document).keyup(function(e){ if (base.$wrapper.is('.activeSlider1') && !e.target.tagName.match('TEXTAREA|INPUT|SELECT')) { switch (e.which) { case 39: base.goForward(); break; case 37: base.goBack(); break; } } }); } triggers = "slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" "); $.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "), function(i,o){ if ($.isFunction(base.options[o])){ base.$el.bind(triggers[i], base.options[o]); } }); if ($.isFunction(o.onSlideComplete)){ base.$el.bind('slide_complete', function(){ setTimeout(function(){ o.onSlideComplete(base); }, 0); }); } base.initialized = true; base.$el.trigger('initialized', base); }; base.updateSlider = function(){ base.$el.children('.cloned').remove(); base.$nav.empty(); base.$items = base.$el.children(); base.pages = base.$items.length; o.showMultiple = parseInt(o.showMultiple,10) || 1; if (o.showMultiple > 1) { if (o.showMultiple > base.pages) { o.showMultiple = base.pages; } base.adjustMultiple = (o.infiniteSlides && base.pages > 1) ? 0 : parseInt(o.showMultiple, 10) - 1; base.pages = base.$items.length - base.adjustMultiple; } if (base.pages 1) { base.$el.prepend( base.$items.filter(':last').clone().addClass('cloned').removeAttr('id') ); if (o.showMultiple > 1) { base.$el.append( base.$items.filter(':lt(' + o.showMultiple + ')').clone().addClass('cloned').addClass('multiple').removeAttr('id') ); } else { base.$el.append( base.$items.filter(':first').clone().addClass('cloned').removeAttr('id') ); } base.$el.find('.cloned').each(function(){ $(this).find('a,input,textarea,select').attr('disabled', 'disabled'); $(this).find('[id]').removeAttr('id'); }); } base.$items = base.$el.children().addClass('panel'); base.setDimensions(); if (o.resizeContents) { if (o.width) { base.$items.css('width', o.width); base.$wrapper.css('width', base.getDim(base.currentPage)[0]); } if (o.height) { base.$wrapper.add(base.$items).css('height', o.height); } } else { base.$win.load(function(){ base.setDimensions(); }); } if (base.currentPage > base.pages) { base.currentPage = base.pages; } base.setCurrentPage(base.currentPage, false); base.$nav.find('a').eq(base.currentPage - 1).addClass('cur1'); base.hasEmb = base.$items.find('embed[src*=youtube]').length; base.hasSwfo = (typeof(swfobject) !== 'undefined' && swfobject.hasOwnProperty('embedSWF') && $.isFunction(swfobject.embedSWF)) ? true : false; if (base.hasEmb && base.hasSwfo) { base.$items.find('embed[src*=youtube]').each(function(i){ var $tar = ($(this).parent()[0].tagName === "OBJECT") ? $(this).parent() : $(this); $tar.wrap(''); swfobject.embedSWF($(this).attr('src') + '&enablejsapi=1&version=3&playerapiid=ytvideo' + i, 'ytvideo' + i, $tar.attr('width'), $tar.attr('height'), '10', null, null, { allowScriptAccess: "always", wmode : o.addWmodeToObject, allowfullscreen : true }, { 'class' : $tar.attr('class'), 'style' : $tar.attr('style') }, function(){ if (i >= base.hasEmb - 1) { base.$el.trigger('swf_completed', base); } } ); }); } if (o.showMultiple === false) { base.$items.find('a').unbind('focus').bind('focus', function(e){ base.$items.find('.focusedLink').removeClass('focusedLink'); $(this).addClass('focusedLink'); var panel = $(this).closest('.panel'); if (!panel.is('.activePage')) { base.gotoPage(base.$items.index(panel)); e.preventDefault(); } }); } }; base.buildNavigation = function() { var tmp, klass, $a; if (o.buildNavigation && (base.pages > 1)) { base.$items.filter(':not(.cloned)').each(function(i) { var index = i + 1; klass = ((index === 1) ? 'first' : '') + ((index === base.pages) ? 'last' : ''); $a = $('').addClass('panel' + index).wrap('

  • '); base.$nav.append($a.parent()); if ($.isFunction(o.navigationFormatter)) { tmp = o.navigationFormatter(index, $(this)); $a.html(' '); if (parseInt($a.find('span').css('text-indent'),10) '); } $a.bind(o.clickControls, function(e) { if (!base.flag && o.enableNavigation) { base.flag = true; setTimeout(function(){ base.flag = false; }, 100); base.gotoPage(index); if (o.hashTags) { base.setHash(index); } } e.preventDefault(); }); }); } }; base.buildNextBackButtons = function() { if (base.$forward) { return; } base.$forward = $('' + o.forwardText + ''); base.$back = $('' + o.backText + ''); base.$back.bind(o.clickArrows, function(e) { base.goBack(); e.preventDefault(); }); base.$forward.bind(o.clickArrows, function(e) { base.goForward(); e.preventDefault(); }); base.$back.add(base.$forward).find('a').bind('focusin focusout',function(){ $(this).toggleClass('hover'); }); base.$wrapper.prepend(base.$forward).prepend(base.$back); base.$arrowWidth = base.$forward.width(); }; base.buildAutoPlay = function(){ if (base.$startStop || base.pages ").html('' + (base.playing ? o.stopText : o.startText) + ''); base.$controls.prepend(base.$startStop); base.$startStop .bind(o.clickSlideshow, function(e) { if (o.enablePlay) { base.startStop(!base.playing); if (base.playing) { if (o.playRtl) { base.goBack(true); } else { base.goForward(true); } } } e.preventDefault(); }) .bind('focusin focusout',function(){ $(this).toggleClass('hover'); }); base.startStop(base.playing); }; base.checkResize = function(stopTimer){ clearTimeout(base.resizeTimer); base.resizeTimer = setTimeout(function(){ var w = base.$outer.width(), h = (base.$outer[0].tagName === "BODY") ? base.$win.height() : base.$outer.height(), dim = base.outerDim; if (dim[0] !== w || dim[1] !== h) { base.outerDim = [ w, h ]; base.setDimensions(); base.gotoPage(base.currentPage, base.playing, null, 1); } if (typeof(stopTimer) === 'undefined'){ base.checkResize(); } }, 500); }; base.setDimensions = function(){ var w, h, c, cw, dw, leftEdge = 0, bww = (o.showMultiple > 1) ? o.width || base.$window.width()/o.showMultiple : base.$window.width(), winw = base.$win.width(); if (o.expand){ w = base.$outer.width() - base.outerPad[0]; h = base.$outer.height() - base.outerPad[1]; base.$wrapper.add(base.$window).add(base.$items).css({ width: w, height: h }); bww = (o.showMultiple > 1) ? w/o.showMultiple : w; } base.$items.each(function(i){ c = $(this).children('*'); if (o.resizeContents){ w = parseInt(o.width,10) || bww; h = parseInt(o.height,10) || base.$window.height(); $(this).css({ width: w, height: h }); if (c.length === 1){ c.css({ width: '100%', height: '100%' }); if (c[0].tagName === "OBJECT") { c.find('embed').andSelf().attr({ width: '100%', height: '100%' }); } } } else { w = $(this).width(); dw = (w >= winw) ? true : false; if (c.length === 1 && dw){ cw = (c.width() >= winw) ? bww : c.width(); $(this).css('width', cw); c.css('max-width', cw); w = cw; } w = (dw) ? o.width || bww : w; $(this).css('width', w); h = $(this).outerHeight(); $(this).css('height', h); } base.panelSize[i] = [w,h,leftEdge]; leftEdge += w; }); base.$el.css('width', (leftEdge 1) ? page : page - 1; var i, w = base.panelSize[page][0], h = base.panelSize[page][1]; if (o.showMultiple > 1) { for (i=1; i base.pages + 1 - base.adjustLimit) { page = (!o.infiniteSlides && !o.stopAtEnd) ? 1 : base.pages; } if (page base.pages ) ? base.pages : ( page base.pages) ? 1 - base.adjustLimit : page - base.adjustLimit ); base.$el.trigger('slide_init', base); base.slideControls(true, false); if (autoplay !== true) { autoplay = false; } if (!autoplay || (o.stopAtEnd && page === base.pages)) { base.startStop(false); } base.$el.trigger('slide_begin', base); if (!o.resizeContents) { var d = base.getDim(page); base.$wrapper.filter(':not(:animated)').animate( { width: d[0], height: d[1] }, { queue: false, duration: time || o.animationTime, easing: o.easing } ); } base.$el.filter(':not(:animated)').animate( { left : -base.panelSize[(o.infiniteSlides && base.pages > 1) ? page : page - 1][2] }, { queue: false, duration: time || o.animationTime, easing: o.easing, complete: function(){ base.endAnimation(page, callback); } } ); }; base.endAnimation = function(page, callback){ if (page === 0) { base.$el.css('left', -base.panelSize[base.pages][2]); page = base.pages; } else if (page > base.pages) { base.$el.css('left', -base.panelSize[1][2]); page = 1; } base.exactPage = page; base.setCurrentPage(page, false); base.$items.removeClass('activePage').eq(page - base.adjustLimit).addClass('activePage'); if (!base.hovered) { base.slideControls(false); } if (base.hasEmb){ var emb = base.$currentPage.find('object[id*=ytvideo], embed[id*=ytvideo]'); if (emb.length && $.isFunction(emb[0].getPlayerState) && emb[0].getPlayerState() > 0 && emb[0].getPlayerState() !== 5) { emb[0].playVideo(); } } base.$el.trigger('slide_complete', base); if (typeof callback === 'function') { callback(base); } if (o.autoPlayLocked && !base.playing) { setTimeout(function(){ base.startStop(true); }, o.resumeDelay - o.delay); } }; base.setCurrentPage = function(page, move) { page = parseInt(page, 10); if (page > base.pages + 1 - base.adjustLimit) { page = base.pages - base.adjustLimit; } if (page 1) ? page : page - 1][2] ); } base.currentPage = page; base.$currentPage = base.$items.eq(page - base.adjustLimit).addClass('activePage'); if (!base.$wrapper.is('.activeSlider1')){ $('.activeSlider1').removeClass('activeSlider1'); base.$wrapper.addClass('activeSlider1'); } }; base.goForward = function(autoplay) { if (autoplay !== true) { autoplay = false; base.startStop(false); } base.gotoPage(base.currentPage + 1, autoplay); }; base.goBack = function(autoplay) { if (autoplay !== true) { autoplay = false; base.startStop(false); } base.gotoPage(base.currentPage - 1, autoplay); }; base.gotoHash = function(){ var n = base.win.location.hash.match(base.regex); return (n===null) ? '' : parseInt(n[1],10); }; base.setHash = function(n){ var s = 'panel' + base.runTimes + '-', h = base.win.location.hash; if ( typeof h !== 'undefined' ) { base.win.location.hash = (h.indexOf(s) > 0) ? h.replace(base.regex, s + n) : h + "&" + s + n; } }; base.slideControls = function(toggle){ var dir = (toggle) ? 'slideDown' : 'slideUp', t1 = (toggle) ? 0 : o.animationTime, t2 = (toggle) ? o.animationTime: 0, op = (toggle) ? 1: 0, sign = (toggle) ? 0 : 1; if (o.toggleControls) { base.$controls.stop(true,true).delay(t1)[dir](o.animationTime/2).delay(t2); } if (o.buildArrows && o.toggleArrows) { if (!base.hovered && base.playing) { sign = 1; op = 0; } base.$forward.stop(true,true).delay(t1).animate({ right: sign * base.$arrowWidth, opacity: op }, o.animationTime/2); base.$back.stop(true,true).delay(t1).animate({ left: sign * base.$arrowWidth, opacity: op }, o.animationTime/2); } }; base.clearTimer = function(paused){ if (base.timer) { base.win.clearInterval(base.timer); if (!paused && base.slideshow) { base.$el.trigger('slideshow_stop', base); base.slideshow = false; } } }; base.startStop = function(playing, paused) { if (playing !== true) { playing = false; } if (playing && !paused) { base.$el.trigger('slideshow_start', base); base.slideshow = true; } base.playing = playing; if (o.autoPlay) { base.$startStop.toggleClass('playing', playing).html('' + (playing ? o.stopText : o.startText) + ''); if (parseInt(base.$startStop.find('span').css('text-indent'),10) 2) && base.$items.index(emb.closest('.panel')) === base.currentPage && o.resumeOnVideoEnd) { stopAdvance = true; } else { if (ps > 0) { emb[0].pauseVideo(); } } } }); return stopAdvance; }; base.init(); }; $.anythingSlider1.defaults = { width : null, height : null, expand : false, resizeContents : true, showMultiple : false, tooltipClass : 'tooltip', theme : 'default', startPanel : 1, hashTags : false, infiniteSlides : true, enableKeyboard : true, buildArrows : true, toggleArrows : false, buildNavigation : true, enableNavigation : true, toggleControls : false, appendControlsTo : null, navigationFormatter : null, forwardText : "»", backText : "«", enablePlay : true, autoPlay : true, autoPlayLocked : true, startStopped : false, pauseOnHover : true, resumeOnVideoEnd : true, stopAtEnd : false, playRtl : false, startText : "", stopText : "", delay : 3000, resumeDelay : 15000, animationTime : 600, easing : "swing", clickArrows : "click", clickControls : "click focusin", clickSlideshow : "click", addWmodeToObject : "opaque", maxOverallWidth : 32766 }; $.fn.anythingSlider1 = function(options, callback) { return this.each(function(){ var page, anySlide = $(this).data('AnythingSlider'); if ((typeof(options)).match('object|undefined')){ if (!anySlide) { (new $.anythingSlider1(this, options)); } else { anySlide.updateSlider(); } } else if (/\d/.test(options) && !isNaN(options) && anySlide) { page = (typeof(options) === "number") ? options : parseInt($.trim(options),10); if ( page >= 1 && page . پایان بررسی آئین نامه پیام رسان های داخلی خارجی . پایان بررسی آئین نامه پیام رسان های داخلی خارجی ، پایان بررسی آئین نامه پیام رسان های داخلی خارجی




    [سازمان صنعت، معدن و تجارت استان خوزستان پایان بررسی آئین نامه پیام رسان های داخلی خارجی]

    نویسنده و منبع | تاریخ انتشار: Tue, 24 Jul 2018 09:52:00 +0000