Допилить скрипт jquery

Бюджет: 200 руб
2.46 $ – 2.13 €
Есть скрипт красиво открывающий попапы по ссылке. Нужно доделать его, что бы можно было дать ссылку на страницу и по ссылке открылось это окно. Ниже часть кода.


<script>
    !function(a){a.fn.animatedModal=function(o){function n(){l.css({"z-index":i.zIndexOut}),i.afterClose()}function t(){i.afterOpen()}var e=a(this),i=a.extend({modalTarget:"animatedModal",position:"fixed",width:"1 00%",height:"100%",top:"0px",left:"0px",zIndexIn:"9999" ,zIndexOut:"-9999",color:"rgba(0,0,0,.5)", opacityIn:"1",opacityOut:"0",animatedIn:"zoomIn",animatedOut:"zoo mOut",animationDuration:".6s",overflow:"auto",beforeOpen:function(){},after Open:function(){},beforeClose:function(){},afterClose:function(){}},o),d=a(".close-"+i.mod alTarget),s=a(e).attr("href"),l=a("body").find("#"+i.modalTarget),m=" #"+l.attr("id");l.addClass("animated"),l.addClass(i.modalTarget+"- off");var r={position:i.position,width:i.width,height:i.height,top:i.top,left:i.left,"background-color" :i.color,"overflow-y":i.overflow,"z-index":i.zIndexOut,opacity:i.opacityOut," -webkit-animation-duration":i.animationDuration};l.css(r),e.click(function(o){o.preventDef ault(),a("body, html").css({overflow:"hidden"}),s==m&&(l.hasClass(i.modalTarget+"-off")&&(l .removeClass(i.animatedOut),l.removeClass(i.modalTarget+"-off"),l.addClass(i.modalTarget+" -on")),l.hasClass(i.modalTarget+"-on")&&(i.beforeOpen(),l.css({opacity:i.opacity In,"z-index":i.zIndexIn}),l.addClass(i.animatedIn),l.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",t)))}),d.click(function(o){o.preventDefault(),a("body, html").css({overflow:"auto"}),i.beforeClose(),l.hasClass(i.modalTarget+"-on" )&&(l.removeClass(i.modalTarget+"-on"),l.addClass(i.modalTarget+"-off")),l.hasC lass(i.modalTarget+"-off")&&(l.removeClass(i.animatedIn),l.addClass(i.animatedOut),l.one(" webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n))})}}(jQuery);
</script>
    <script>

        $("#prev01").animatedModal({
            modalTarget:'modal-01'
        });
        $("#prev02").animatedModal({
            modalTarget:'modal-02'
        });
        $("#prev03").animatedModal({
            modalTarget:'modal-03'
        });
        $("#prev04").animatedModal({
            modalTarget:'modal-04'
        });
        $("#prev05").animatedModal({
            modalTarget:'modal-05'
        });
    </script>
Опубликован 03.11.2016 в 19:16

Выберите способ верификации:

Обновите страницу после прохождения верификации.