/home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom
NameSizeModeActions
calendar.js74120644editdlrm
charts.js314980644editdlrm
coming-soon.js6610644editdlrm
components-dropdowns.js103830644editdlrm
components-editors.js5160644editdlrm
components-form-tools.js191330644editdlrm
components-ion-sliders.js23180644editdlrm
components-jqueryui-sliders.js36800644editdlrm
components-knob-dials.js5460644editdlrm
components-nouisliders.js17880644editdlrm
components-pickers.js78520644editdlrm
contact-us.js6320644editdlrm
custom.js5530644editdlrm
ecommerce-index.js80690644editdlrm
ecommerce-orders-view.js73390644editdlrm
ecommerce-orders.js27720644editdlrm
ecommerce-products-edit.js65210644editdlrm
ecommerce-products.js27890644editdlrm
form-dropzone.js14340644editdlrm
form-editable.js186430644editdlrm
form-fileupload.js27220644editdlrm
form-image-crop.js170440644editdlrm
form-samples.js14840644editdlrm
form-validation.js120080644editdlrm
form-wizard.js104420644editdlrm
inbox.js96430644editdlrm
index11.js326050644editdlrm
lock.js3950644editdlrm
login-soft.js84720644editdlrm
login.js83320644editdlrm
maps-google.js61530644editdlrm
maps-vector.js18970644editdlrm
portfolio.js1920644editdlrm
portlet-draggable.js6550644editdlrm
search.js2870644editdlrm
table-advanced.js45830644editdlrm
table-ajax.js33640644editdlrm
table-editable.js61910644editdlrm
table-managed.js60840644editdlrm
tasks.js3830644editdlrm
ui-alert-dialog-api.js33470644editdlrm
ui-blockui.js38940644editdlrm
ui-datepaginator.js8050644editdlrm
ui-extended-modals.js25640644editdlrm
ui-general.js66240644editdlrm
ui-idletimeout.js23300644editdlrm
ui-nestable.js15910644editdlrm
ui-notific8.js14720644editdlrm
ui-toastr.js49900644editdlrm
ui-tree.js64580644editdlrm
Edit: /home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom/ui-toastr.js (4990B)
var UIToastr = function () { return { //main function to initiate the module init: function () { var i = -1, toastCount = 0, $toastlast, getMessage = function () { var msgs = ['Hello, some notification sample goes here', '
 Check this out
', 'Did you like this one ? :)', 'Totally Awesome!!!', 'Yeah, this is the Metronic!', 'Explore the power of Metronic. Purchase it now!' ]; i++; if (i === msgs.length) { i = 0; } return msgs[i]; }; $('#showtoast').click(function () { var shortCutFunction = $("#toastTypeGroup input:checked").val(); var msg = $('#message').val(); var title = $('#title').val() || ''; var $showDuration = $('#showDuration'); var $hideDuration = $('#hideDuration'); var $timeOut = $('#timeOut'); var $extendedTimeOut = $('#extendedTimeOut'); var $showEasing = $('#showEasing'); var $hideEasing = $('#hideEasing'); var $showMethod = $('#showMethod'); var $hideMethod = $('#hideMethod'); var toastIndex = toastCount++; toastr.options = { closeButton: $('#closeButton').prop('checked'), debug: $('#debugInfo').prop('checked'), positionClass: $('#positionGroup input:checked').val() || 'toast-top-right', onclick: null }; if ($('#addBehaviorOnToastClick').prop('checked')) { toastr.options.onclick = function () { alert('You can perform some custom action after a toast goes away'); }; } if ($showDuration.val().length) { toastr.options.showDuration = $showDuration.val(); } if ($hideDuration.val().length) { toastr.options.hideDuration = $hideDuration.val(); } if ($timeOut.val().length) { toastr.options.timeOut = $timeOut.val(); } if ($extendedTimeOut.val().length) { toastr.options.extendedTimeOut = $extendedTimeOut.val(); } if ($showEasing.val().length) { toastr.options.showEasing = $showEasing.val(); } if ($hideEasing.val().length) { toastr.options.hideEasing = $hideEasing.val(); } if ($showMethod.val().length) { toastr.options.showMethod = $showMethod.val(); } if ($hideMethod.val().length) { toastr.options.hideMethod = $hideMethod.val(); } if (!msg) { msg = getMessage(); } $("#toastrOptions").text("Command: toastr[" + shortCutFunction + "](\"" + msg + (title ? "\", \"" + title : '') + "\")\n\ntoastr.options = " + JSON.stringify(toastr.options, null, 2)); var $toast = toastr[shortCutFunction](msg, title); // Wire up an event handler to a button in the toast, if it exists $toastlast = $toast; if ($toast.find('#okBtn').length) { $toast.delegate('#okBtn', 'click', function () { alert('you clicked me. i was toast #' + toastIndex + '. goodbye!'); $toast.remove(); }); } if ($toast.find('#surpriseBtn').length) { $toast.delegate('#surpriseBtn', 'click', function () { alert('Surprise! you clicked me. i was toast #' + toastIndex + '. You could perform an action here.'); }); } $('#clearlasttoast').click(function () { toastr.clear($toastlast); }); }); $('#cleartoasts').click(function () { toastr.clear(); }); } }; }();