Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function pulse() {
- $(".pan").delay(200).animate({'opacity': 1}).delay(200).animate({'opacity': 0.8}, pulse);
- })();
- (function pulse2() {
- $(".pan2").delay(200).animate({'opacity': 1}).delay(200).animate({'opacity': 0.4}, pulse2);
- })();
- var anim = (function () {
- var i = 80;
- var step = 5;
- var up = true;
- var timer = null;
- var next = function () {
- if (up) {
- i += step;
- }
- else {
- i -= step;
- }
- if (i < 80) {
- i = 80;
- up = true;
- }
- if (i > 180) {
- i = 180;
- up = false;
- }
- update(i);
- };
- var update = function (i) {
- $(".st").css("border-color", 'rgb(' + i + ',' + 0 + ',' + 0 + ')');
- $(".stt").css("color", 'rgb(' + i + ',' + 0 + ',' + 0 + ')');
- };
- var go = function () {
- next();
- timer = window.setTimeout(anim.go, 30);
- };
- var stop = function () {
- if (timer) {
- window.clearTimeout(timer);
- timer = null;
- }
- };
- return {
- go: go,
- stop: stop
- };
- }());
- $(document).ready(function () {
- setTimeout(redirect, 900000);
- anim.go();
- $(".iframe").fancybox({
- type: 'iframe',
- autoSize: false,
- autoDimensions: false,
- scrolling: 'no',
- width: 1400,
- height: 920,
- });
- });
- function redirect() {
- window.location.href = "http://domain.com";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement