���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/sngda.to/user/plugins/expiry/assets/expiry.js
���ѧ٧ѧ�
// Create new link with expiry data and add to table function add_link_expiry() { if( $('#add-button').hasClass('disabled') ) { return false; } var newurl = $("#add-url").val(); var nonce = $("#nonce-add").val(); var expiry = $("#expiry").val(); var age = $("#age").val(); var ageMod = $("#ageMod").val(); var count = $("#count").val(); var postx = $("#postx").val(); if ( !newurl || newurl == 'http://' || newurl == 'https://' ) { return; } var keyword = $("#add-keyword").val(); add_loading("#add-button"); $.getJSON( ajaxurl, {action:'add', url: newurl, keyword: keyword, expiry: expiry, age: age, ageMod: ageMod, count: count, postx: postx, nonce: nonce}, function(data){ if(data.status == 'success') { $('#main_table tbody').prepend( data.html ).trigger("update"); $('#nourl_found').css('display', 'none'); zebra_table(); increment_counter(); toggle_share_fill_boxes( data.url.url, data.shorturl, data.url.title ); } add_link_reset(); end_loading("#add-button"); end_disable("#add-button"); feedback(data.message, data.status); } ); } // dealing with the expiry list form function setExpiryCookie(name,value) { document.cookie = name + "=" + (value || "") + "; SameSite=Strict;"; } // expiry info on admin page function expiry_infos() { var surl = $( '#copylink' ).val(); var shorturl = decodeURIComponent(surl) $.ajax({ type: "GET", url: ajaxurl, data:{action:'expiry-stats', shorturl: shorturl}, success: function(data) { var smpl = data.simple; var msg = 'Expiry: ' + smpl; document.getElementById('expiry-share').innerHTML = msg; } }); } $(document).ready( function( ){ // Share button behavior $( '.button_share' ).click( function( ){ expiry_infos(); }); var div = document.getElementById('copybox'); div.innerHTML += '<span id=expiry-share></span>'; });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.6 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�