PATH: /home/hwyuvbry/www/kerbau/assets/js
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 app-access-permission.js
↓
X
📄 app-access-roles.js
↓
X
📄 app-calendar-events.js
↓
X
📄 app-calendar.js
↓
X
📄 app-chat.js
↓
X
📄 app-email.js
↓
X
📄 app-invoice-add.js
↓
X
📄 app-invoice-edit.js
↓
X
📄 app-invoice-list.js
↓
X
📄 app-invoice-print.js
↓
X
📄 app-kanban.js
↓
X
📄 app-user-list.js
↓
X
📄 app-user-view-account.js
↓
X
📄 app-user-view-billing.js
↓
X
📄 app-user-view-security.js
↓
X
📄 app-user-view.js
↓
X
📄 cards-actions.js
↓
X
📄 cards-advance.js
↓
X
📄 cards-analytics.js
↓
X
📄 cards-statistics.js
↓
X
📄 charts-apex.js
↓
X
📄 charts-chartjs.js
↓
X
📄 config.js
↓
X
📄 dashboards-analytics.js
↓
X
📄 dashboards-crm.js
↓
X
📄 dashboards-ecommerce.js
↓
X
📄 extended-ui-blockui.js
↓
X
📄 extended-ui-drag-and-drop.js
↓
X
📄 extended-ui-media-player.js
↓
X
📄 extended-ui-misc-clipboardjs.js
↓
X
📄 extended-ui-misc-idle-timer.js
↓
X
📄 extended-ui-misc-numeraljs.js
↓
X
📄 extended-ui-perfect-scrollbar.js
↓
X
📄 extended-ui-star-ratings.js
↓
X
📄 extended-ui-sweetalert2.js
↓
X
📄 extended-ui-timeline.js
↓
X
📄 extended-ui-tour.js
↓
X
📄 extended-ui-treeview.js
↓
X
📄 form-basic-inputs.js
↓
X
📄 form-layouts.js
↓
X
📄 form-validation.js
↓
X
📄 form-wizard-icons.js
↓
X
📄 form-wizard-numbered.js
↓
X
📄 form-wizard-validation.js
↓
X
📄 forms-editors.js
↓
X
📄 forms-extras.js
↓
X
📄 forms-file-upload.js
↓
X
📄 forms-pickers.js
↓
X
📄 forms-selects.js
↓
X
📄 forms-sliders.js
↓
X
📄 forms-tagify.js
↓
X
📄 forms-typeahead.js
↓
X
📄 jquery.priceformat.min.js
↓
X
📄 main.js
↓
X
📄 maps-leaflet.js
↓
X
📄 modal-add-new-address.js
↓
X
📄 modal-add-new-cc.js
↓
X
📄 modal-add-permission.js
↓
X
📄 modal-add-role.js
↓
X
📄 modal-create-app.js
↓
X
📄 modal-edit-cc.js
↓
X
📄 modal-edit-permission.js
↓
X
📄 modal-edit-user.js
↓
X
📄 modal-enable-otp.js
↓
X
📄 modal-share-project.js
↓
X
📄 modal-two-factor-auth.js
↓
X
📄 offcanvas-add-payment.js
↓
X
📄 offcanvas-send-invoice.js
↓
X
📄 pages-account-settings-account.js
↓
X
📄 pages-account-settings-billing.js
↓
X
📄 pages-account-settings-security.js
↓
X
📄 pages-auth-multisteps.js
↓
X
📄 pages-auth-two-steps.js
↓
X
📄 pages-auth.js
↓
X
📄 pages-pricing.js
↓
X
📄 pages-profile.js
↓
X
📁 particles/
X
📄 tables-datatables-advanced.js
↓
X
📄 tables-datatables-basic.js
↓
X
📄 tables-datatables-extensions.js
↓
X
📄 ui-app-brand.js
↓
X
📄 ui-carousel.js
↓
X
📄 ui-menu.js
↓
X
📄 ui-modals.js
↓
X
📄 ui-navbar.js
↓
X
📄 ui-popover.js
↓
X
📄 ui-toasts.js
↓
X
📄 waves.js
↓
X
📄 wizard-ex-checkout.js
↓
X
📄 wizard-ex-create-deal.js
↓
X
📄 wizard-ex-property-listing.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: ui-toasts.js
/** * UI Toasts */ 'use strict'; (function () { // Bootstrap toasts example // -------------------------------------------------------------------- const toastAnimationExample = document.querySelector('.toast-ex'), toastPlacementExample = document.querySelector('.toast-placement-ex'), toastAnimationBtn = document.querySelector('#showToastAnimation'), toastPlacementBtn = document.querySelector('#showToastPlacement'); let selectedType, selectedAnimation, selectedPlacement, toast, toastAnimation, toastPlacement; // Animation Button click if (toastAnimationBtn) { toastAnimationBtn.onclick = function () { if (toastAnimation) { toastDispose(toastAnimation); } selectedType = document.querySelector('#selectType').value; selectedAnimation = document.querySelector('#selectAnimation').value; toastAnimationExample.classList.add(selectedAnimation); toastAnimationExample.querySelector('.ti').classList.add(selectedType); toastAnimation = new bootstrap.Toast(toastAnimationExample); toastAnimation.show(); }; } // Dispose toast when open another function toastDispose(toast) { if (toast && toast._element !== null) { if (toastPlacementExample) { toastPlacementExample.classList.remove(selectedType); toastPlacementExample.querySelector('.ti').classList.remove(selectedType); DOMTokenList.prototype.remove.apply(toastPlacementExample.classList, selectedPlacement); } if (toastAnimationExample) { toastAnimationExample.classList.remove(selectedType, selectedAnimation); toastAnimationExample.querySelector('.ti').classList.remove(selectedType); } toast.dispose(); } } // Placement Button click if (toastPlacementBtn) { toastPlacementBtn.onclick = function () { if (toastPlacement) { toastDispose(toastPlacement); } selectedType = document.querySelector('#selectTypeOpt').value; selectedPlacement = document.querySelector('#selectPlacement').value.split(' '); toastPlacementExample.querySelector('.ti').classList.add(selectedType); DOMTokenList.prototype.add.apply(toastPlacementExample.classList, selectedPlacement); toastPlacement = new bootstrap.Toast(toastPlacementExample); toastPlacement.show(); }; } })(); //Toastr (jquery) // -------------------------------------------------------------------- $(function () { var i = -1; var toastCount = 0; var $toastlast; var getMessage = function () { var msgs = [ "Don't be pushed around by the fears in your mind. Be led by the dreams in your heart.", '<div class="mb-3"><input class="input-small form-control" value="Textbox"/> <a href="http://johnpapa.net" target="_blank">This is a hyperlink</a></div><div class="d-flex"><button type="button" id="okBtn" class="btn btn-primary btn-sm me-2">Close me</button><button type="button" id="surpriseBtn" class="btn btn-sm btn-secondary">Surprise me</button></div>', 'Live the Life of Your Dreams', 'Believe in Your Self!', 'Be mindful. Be grateful. Be positive.', 'Accept yourself, love yourself!' ]; i++; if (i === msgs.length) { i = 0; } return msgs[i]; }; var getMessageWithClearButton = function (msg) { msg = msg ? msg : 'Clear itself?'; msg += '<br /><br /><button type="button" class="btn btn-secondary clear">Yes</button>'; return msg; }; $('#closeButton').click(function () { if ($(this).is(':checked')) { $('#addBehaviorOnToastCloseClick').prop('disabled', false); } else { $('#addBehaviorOnToastCloseClick').prop('disabled', true); $('#addBehaviorOnToastCloseClick').prop('checked', false); } }); $('#showtoast').click(function () { var shortCutFunction = $('#toastTypeGroup input:radio:checked').val(), isRtl = $('html').attr('dir') === 'rtl', msg = $('#message').val(), title = $('#title').val() || '', $showDuration = $('#showDuration'), $hideDuration = $('#hideDuration'), $timeOut = $('#timeOut'), $extendedTimeOut = $('#extendedTimeOut'), $showEasing = $('#showEasing'), $hideEasing = $('#hideEasing'), $showMethod = $('#showMethod'), $hideMethod = $('#hideMethod'), toastIndex = toastCount++, addClear = $('#addClear').prop('checked'), prePositionClass = 'toast-top-right'; prePositionClass = typeof toastr.options.positionClass === 'undefined' ? 'toast-top-right' : toastr.options.positionClass; toastr.options = { maxOpened: 1, autoDismiss: true, closeButton: $('#closeButton').prop('checked'), debug: $('#debugInfo').prop('checked'), newestOnTop: $('#newestOnTop').prop('checked'), progressBar: $('#progressBar').prop('checked'), positionClass: $('#positionGroup input:radio:checked').val() || 'toast-top-right', preventDuplicates: $('#preventDuplicates').prop('checked'), onclick: null, rtl: isRtl }; //Add fix for multiple toast open while changing the position if (prePositionClass != toastr.options.positionClass) { toastr.options.hideDuration = 0; toastr.clear(); } if ($('#addBehaviorOnToastClick').prop('checked')) { toastr.options.onclick = function () { alert('You can perform some custom action after a toast goes away'); }; } if ($('#addBehaviorOnToastCloseClick').prop('checked')) { toastr.options.onCloseClick = function () { alert('You can perform some custom action when the close button is clicked'); }; } if ($showDuration.val().length) { toastr.options.showDuration = parseInt($showDuration.val()); } if ($hideDuration.val().length) { toastr.options.hideDuration = parseInt($hideDuration.val()); } if ($timeOut.val().length) { toastr.options.timeOut = addClear ? 0 : parseInt($timeOut.val()); } if ($extendedTimeOut.val().length) { toastr.options.extendedTimeOut = addClear ? 0 : parseInt($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 (addClear) { msg = getMessageWithClearButton(msg); toastr.options.tapToDismiss = false; } if (!msg) { msg = getMessage(); } var $toast = toastr[shortCutFunction](msg, title); // Wire up an event handler to a button in the toast, if it exists $toastlast = $toast; if (typeof $toast === 'undefined') { return; } 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.'); }); } if ($toast.find('.clear').length) { $toast.delegate('.clear', 'click', function () { toastr.clear($toast, { force: true }); }); } }); function getLastToast() { return $toastlast; } $('#clearlasttoast').click(function () { toastr.clear(getLastToast()); }); $('#cleartoasts').click(function () { toastr.clear(); }); });
SIMPAN PERUBAHAN