PageSourceSearch

https://www.makart.rs/__public/dev/dm.js?v=3

js makart.rs collected 2026-10-02 22:05:45 UTC 10,435 bytes, 112 lines download raw bytes

1/* https://github.com/Ali-Dalal/easy-alert-js https://ali-dalal.github.io/easy-alert-js/ */
2!function(t){t.fn.easyAlert=t.easyAlert=function(o,n,s){var l=void 0!==jQuery.ui,r={};"string"==typeof o?r=t.extend({},t.fn.easyAlert.defaults,{message:o,alertType:void 0===n?"success":n,position:void 0===s?"b r":s}):"object"!=typeof o&&void 0!==o||(r=t.extend({},t.fn.easyAlert.defaults,o));var d='<div class="easy-alert"><div class="alert alert-'+r.alertType+'">'+r.message+"</div></div>",c=t(d),p=r.position.split(" "),h=void 0===i[p[0]]?"top":i[p[0]],f=void 0===a[p[1]]?"right":a[p[1]];if(2===p.length){if(0==(r.clickToHide|r.autoHide)&&(r.autoHide=!0),void 0===this.selector){var u,m={position:"fixed","min-width":r.globalMinWidth,display:"none"};"top"===h?(m.top="5px",u="easy-alert-t",c.attr("data-vertical","top")):(m.bottom="5px",u="easy-alert-b",c.attr("data-vertical","bottom")),"center"===f?(m.left="50%",m.transform="translateX(-50%)",u+="-c"):"left"===f?(m.left="5px",u+="-l"):(m.right="5px",u+="-r");var g=hasLeftOrRightAnimationHide=!1;t.inArray(r.showAnimation,["drop","fold","scale","size","slide"])>-1&&(g=!0),t.inArray(r.hideAnimation,["drop","fold","scale","size","slide"])>-1&&(hasLeftOrRightAnimationHide=!0);for(var v=t("."+u),y=v.length,b=r.globalSpace,A=0;A<y;A++)b+=t(v[A]).height()+r.globalSpace;m.hasOwnProperty("top")?m.top=b+"px":m.bottom=b+"px",c.addClass(u),c.css(m);var x=function(){if(l){var t={effect:r.hideAnimation,duration:r.hideDuration,complete:w};hasLeftOrRightAnimationHide&&(t.direction=f),c.toggle(t)}else c.fadeOut(r.hideDuration,w)},H=!1,w=function(){var t=c.attr("data-vertical"),i=c.css(t);c.remove(),"function"==typeof r.hidden&&!H&&r.hidden.call(this,this,r.message),H=!0,e("."+u,t,parseInt(i),r.globalSpace)};r.clickToHide&&c.on("click",function(){"function"==typeof r.clicked&&r.clicked.call(this,this,r.message),x()}),r.autoHide&&setTimeout(x,r.time);var T={effect:r.showAnimation,duration:r.showDuration};return"function"==typeof r.complete&&(T.complete=function(){r.complete.call(this,r.message,this)}),g&&(T.direction=f),c.appendTo("body").show(T),r.message}return this}console.error("invalid position argument")};var e=function(e,i,a,o){t(e).each(function(){var e=Number(t(this).height())+Number(o),n=parseInt(t(this).css(i));a<n&&n-e>=o&&("top"===i?t(this).animate({top:n-e+"px"},300):t(this).animate({bottom:n-e+"px"},300))})},i={t:"top",m:"middle",b:"bottom"},a={l:"left",c:"center",r:"right"};t.fn.easyAlert.defaults={message:"Easy alert-js By Ali Dalal",alertType:"success",position:"b r",globalMinWidth:"250px",clickToHide:!0,autoHide:!1,time:5e3,showAnimation:"fade",showDuration:300,hideAnimation:"fade",hideDuration:300,globalSpace:5,complete:null,clicked:null,hidden:null}}(jQuery);
3
4// --- INIT
5if (typeof init_function__ == 'function'){
6    init_function__();
7}
8
9if (typeof resize_function__ == 'function'){
10    $(window).resize(function() {
11        resize_function__();
12    })
13}
14
15if (typeof onload_function__ == 'function'){
16    $( document ).ready(function() {
17        onload_function__();
18    })
19}
20
21// --- GDPR
22INIT_GDPR=true;
23if(INIT_GDPR==true)
24{
25    var cookie_name = 'gdpr';
26    if("undefined"==typeof jQuery)throw new Error("Cookie Bar component requires jQuery");!function(t){var i,r,n=[];n.en={message:"We use cookies to provide our services. By using this website, you agree to this.",acceptText:"OK",infoText:"More information",privacyText:"Privacy protection"},n.de={message:"Zur Bereitstellung von Diensten verwenden wir Cookies. Durch die Nutzung dieser Website stimmen Sie zu.",acceptText:"OK",infoText:"Mehr Informationen",privacyText:"Datenschutz"},n.cs={message:"K poskytování služeb využíváme soubory cookie. Používáním tohoto webu s&nbsp;tím souhlasíte.",acceptText:"V pořádku",infoText:"Více informací",privacyText:"Ochrana soukromí"},n.sk={message:"Na poskytovanie služieb využívame súbory cookie. Používaním tohto webu s&nbsp;tým súhlasíte.",acceptText:"V poriadku",infoText:"Viac informácií",privacyText:"Ochrana súkromia"},n.ru={message:"Данный сайт использует для предоставления услуг, персонализации объявлений и анализа трафика печенье. Используя этот сайт, вы соглашаетесь.",acceptText:"Я согласен",infoText:"БольшÐÂ
26µ информации",privacyText:"Конфиденциальность"};var c={init:function(o){i="#cookie-bar";var e={infoLink:"https://www.google.com/policies/technologies/cookies/",infoTarget:"_blank",wrapper:"body",expireDays:365,style:"top",language:t("html").attr("lang")||"en",privacy:!1,privacyTarget:"_blank",privacyContent:null};r=t.extend(e,o),"accepted"!==c.getCookie(cookie_name)&&c.displayBar(),t(document).on("click",i+" .cookie-bar__btn",function(o){o.preventDefault(),c.setCookie(cookie_name,"accepted",r.expireDays),c.hideBar()}),t(document).on("click",'[data-toggle="cookieBarPrivacyPopup"]',function(o){o.preventDefault(),c.showPopup()}),t(document).on("click",".cookie-bar-privacy-popup, .cookie-bar-privacy-popup__dialog__close",function(o){c.hidePopup()}),t(document).on("click",".cookie-bar-privacy-popup__dialog",function(o){o.stopPropagation()})},displayBar:function(){var o='<button type="button" class="cookie-bar__btn">'+n[r.language].acceptText+"</button>",e='<a href="'+r.infoLink+'" target="'+r.infoTarget+'" class="cookie-bar__link cookie-bar__link--cookies-info">'+n[r.language].infoText+"</a>",i="";r.privacy&&("link"===r.privacy?i='<a href="'+r.privacyContent+'" target="'+r.privacyTarget+'" class="cookie-bar__link cookie-bar__link--privacy-info">'+n[r.language].privacyText+"</a>":"bs_modal"===r.privacy?i='<a href="'+r.privacyContent+'" data-toggle="modal" class="cookie-bar__link cookie-bar__link--privacy-info">'+n[r.language].privacyText+"</a>":"popup"===r.privacy&&(c.renderPopup(),i='<a href="#" data-toggle="cookieBarPrivacyPopup" class="cookie-bar__link cookie-bar__link--privacy-info">'+n[r.language].privacyText+"</a>"));var a='<div id="cookie-bar" class="cookie-bar cookie-bar--'+r.style+'"><div class="cookie-bar__inner"><span class="cookie-bar__message">'+n[r.language].message+'</span><span class="cookie-bar__buttons">'+o+e+i+"</span></div></div>";t(r.wrapper).prepend(a)},hideBar:function(){t(i).slideUp()},renderPopup:function(){var o=t('<div id="cookieBarPrivacyPopup" class="cookie-bar-privacy-popup cookie-bar-privacy-popup--hidden"><div class="cookie-bar-privacy-popup__dialog"><button type="button" class="cookie-bar-privacy-popup__dialog__close"></button></div></div>');t("body").append(o),t(".cookie-bar-privacy-popup__dialog",o).append(r.privacyContent)},showPopup:function(){t("#cookieBarPrivacyPopup").removeClass("cookie-bar-privacy-popup--hidden")},hidePopup:function(){t("#cookieBarPrivacyPopup").addClass("cookie-bar-privacy-popup--hidden")},addTranslation:function(o,e){n[o]=e},setCookie:function(o,e,i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3);var t="expires="+a.toUTCString();document.cookie=o+"="+e+";"+t+";path=/"},getCookie:function(o){for(var e=o+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){for(var t=i[a];" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(e))return t.substring(e.length,t.length)}return""}};t.cookieBar=function(o){return c[o]?c[o].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof o&&o?void t.error("Method "+o+" does not exist on Cookie Bar component"):c.init.apply(this,arguments)}}(jQuery);
27
28
29
30   $.cookieBar('addTranslation', 'sr', {
31		message: 	'Sajt '+window.location.host+' koristi kolačiće (cookies) koji ne sadrže lične podatke i služe radi poboljšanja korisničkog iskustva veb stranice. Prisutnost na veb sajtu, podrazumeva da se posetioci slažu sa korišćenjem ovih kolačića.',
32		acceptText:	'<i class="fa-solid fa-x"></i>',
33		infoText:	'Za više detalja o zaštiti podataka pročitajte u Polisa privatnosti'
34	});
35
36
37  $.cookieBar({
38    infoLink: '/polisa-privatnosti-stranica-9',
39    infoTarget :'_self',
40    language: 'sr',
41    wrapper: 'body',
42
43  });
44
45}
46
47
48function ealert_info(message,autohide)
49{
50    message = '<i class="icon icon-notification" aria-hidden="true"></i>' + message + '</span>';
51    ealert_(message,'info',autohide);
52}
53function ealert_ok(message,autohide)
54{
55    message = '<i class="icon icon-checkmark" aria-hidden="true"></i>' + message + '</span>';
56    ealert_(message,'success',autohide);
57}
58function ealert_err(message,autohide)
59{
60    message = '<i class="icon icon-warning" aria-hidden="true"></i><span>' + message + '</span>';
61    ealert_(message,'danger',autohide);
62}
63function ealert_(message,type,autohide)
64{
65    if(autohide === undefined) autohide = true;
66
67    $.easyAlert({
68        message: message,
69        alertType: type,
70        position: 't c',
71        autoHide: autohide,
72        clickToHide:true,
73        globalMinWidth:'0',
74        time:2000,
75        showDuration:0
76    });
77}
78
79if($('.social-area').length>0)
80{
81
82        var s = document.createElement('script');
83        s.type = 'text/javascript';
84        s.async = true;
85        s.src = '//platform-api.sharethis.com/js/sharethis.js#property=647074c65380390019971ef4&product=inline-share-buttons&source=platform';
86        var x = document.getElementsByTagName('script')[0];
87        x.parentNode.insertBefore(s, x);
88
89}
90
91
92function setCookie(cname, cvalue, exdays)
93{
94  var d = new Date();
95  d.setTime(d.getTime() + (exdays*24*60*60*1000));
96  var expires = "expires="+ d.toUTCString();
97  document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
98}
99
100$('#tippretrage').change(function(){
101    var holder = $(this).find('option:selected').data('holder');
102    $('#dm-formsearch-tip').val($(this).val());
103    $('#dm-formsearch-input').prop('placeholder',holder);
104});
105
106
107if($('#spisakknjiga').length>0)
108{
109    $('#artikli-order').change(function(){
110        $(this).parents('form').submit();
111    });
112}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.