(function() {if (window.jQuery === undefined ) { var script_tag = document.createElement("script"); script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"); if (script_tag.readyState) { script_tag.onreadystatechange = function () { // For old versions of IE if (this.readyState == "complete" || this.readyState == "loaded") { scriptLoadHandler(); } }; } else { script_tag.onload = scriptLoadHandler; } // Try to find the head, otherwise default to the documentElement (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); } else { // The jQuery version on the window is the one we want to use jQuery = window.jQuery; main(); }function scriptLoadHandler() { // Restore $ and window.jQuery to their previous values and store the // new jQuery in our local jQuery variable jQuery = window.jQuery.noConflict(true); // Call our main function main(); }function main() {jQuery(document).ready(function($) {var css_link = $("", { rel: "stylesheet", type: "text/css", href: "https://www.expertulbanilor.ro/widget/widget-css.css" }); css_link.appendTo("head");var jsonp_url = "https://www.expertulbanilor.ro/widget/depozite-termen-app.php?callback=?";$.getJSON(jsonp_url,"moneda=ron&termen=1&suma=10000&link=",function(res){ $("#widtDepTr").before( res.tabel); $("#termenWDep").change(function() { $(this).prev().text($("#termenWDep option:selected").text()); }); $("#monedaWDep").change(function() { $(this).prev().text($("#monedaWDep option:selected").text()); }); $("#searchWDep").click(function(){ $("#topDepWgt").empty(); var jsonp_url = "https://www.expertulbanilor.ro/widget/depozite-termen-app.php?callback=?"; $.getJSON(jsonp_url,"moneda=" + $("#monedaWDep").val() + "&termen=" + $("#termenWDep").val() + "&suma=" + $("#sumaWDep").val() + "&link=" + res.link,function(res){ $("#topDepWgt").append("BancaRata dobanziiCastig"); $("#topDepWgt").append(res.lista); }); }); });});}})();