2,4c2,15
<
< Button Innards - RJM Programming - August, 2025
<
---
> After Bookmark Export Management - RJM Programming - July, 2024
>
7c18
< var mysubject='My Button Innards ...';
---
> var mysubject='My Bookmarked Links ...';
9a21,123
> function doemail() {
> if (document.getElementById('bmkdata').value.trim() != '') {
> locationhash='#bmkdata=' + window.btoa(encodeURIComponent(document.getElementById('bmkdata').value));
> mysubject='My Bookmarked Links ...';
> if (document.getElementById('dtone').value.trim() != '' && document.getElementById('dttwo').value.trim() != '') {
> mysubject='My Bookmarked Links from ' + document.getElementById('dtone').value.trim() + ' to ' + document.getElementById('dttwo').value.trim() + ' ... ';
> } else if (document.getElementById('dtone').value.trim() != '') {
> mysubject='My Bookmarked Links from ' + document.getElementById('dtone').value.trim() + ' ... ';
> } else if (document.getElementById('dttwo').value.trim() != '') {
> mysubject='My Bookmarked Links up until ' + document.getElementById('dttwo').value.trim() + ' ... ';
> }
> if (ulli && !utable) {
> recipient=prompt('Please enter email address to send to? Will output UL/LI else if some blanks will output Table. Default email Subject is ' + mysubject + ' ... but if you want a different one append a hash (#) followed by your own Subject for the Email.', '');
> if (recipient == null) { recipient=''; } else if (recipient.indexOf('@') == -1) { recipient=''; } else if (eval('' + recipient.indexOf('#')) > eval('' + recipient.indexOf('@'))) { mysubject=recipient.split('#')[1]; recipient=recipient.split('#')[0]; }
> if (recipient.indexOf(' ') != -1) {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?table=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> } else {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?ulli=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> }
> xlocationhref=locationhref;
> if (recipient.trim() != '') {
> if (1 == 1) {
> processit();
> } else {
> document.getElementById('spareshare').href='mailto:' + recipient.replace(/\ /g,'') + '?subject=' + encodeURIComponent(mysubject) + '&body=' + encodeURIComponent(locationhref + locationhash);
> document.getElementById('spareshare').click();
> recipient='';
> }
> }
> } else if (utable) {
> recipient=prompt('Please enter email address to send to? Will output UL/LI else if some blanks will output Table. Default email Subject is ' + mysubject + ' ... but if you want a different one append a hash (#) followed by your own Subject for the Email.', '');
> if (recipient == null) { recipient=''; } else if (recipient.indexOf('@') == -1) { recipient=''; } else if (eval('' + recipient.indexOf('#')) > eval('' + recipient.indexOf('@'))) { mysubject=recipient.split('#')[1]; recipient=recipient.split('#')[0]; }
> if (recipient.indexOf(' ') != -1) {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?table=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> } else {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?ulli=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> }
> xlocationhref=locationhref;
> if (recipient.trim() != '') {
> if (1 == 1) {
> processit();
> } else {
> document.getElementById('spareshare').href='mailto:' + recipient.replace(/\ /g,'') + '?subject=' + encodeURIComponent(mysubject) + '&body=' + encodeURIComponent(locationhref + locationhash);
> document.getElementById('spareshare').click();
> recipient='';
> }
> }
> }
> }
> }
>
> function dosms() {
> if (document.getElementById('bmkdata').value.trim() != '') {
> locationhash='#bmkdata=' + window.btoa(encodeURIComponent(document.getElementById('bmkdata').value));
> if (ulli && !utable) {
> recipient=prompt('Please enter SMS number to send to? Will output UL/LI else if some blanks will output Table.', '');
> if (recipient == null) { recipient=''; } else if (recipient.trim() != '' && recipient.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') != '') { recipient=''; }
> if (recipient.indexOf(' ') != -1) {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?table=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> } else {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?ulli=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> }
> xlocationhref=locationhref;
> if (recipient.trim() != '') {
> if (1 == 1) {
> processit();
> } else {
> document.getElementById('spareshare').href='sms:' + recipient.replace(/\ /g,'') + '&body=' + encodeURIComponent(locationhref + locationhash);
> document.getElementById('spareshare').click();
> recipient='';
> }
> }
> } else if (utable) {
> recipient=prompt('Please enter SMS number to send to? Will output UL/LI else if some blanks will output Table.', '');
> if (recipient == null) { recipient=''; } else if (recipient.trim() != '' && recipient.trim().replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'') != '') { recipient=''; }
> if (recipient.indexOf(' ') != -1) {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?table=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> } else {
> locationhref=document.URL.split('?')[0].split('#')[0] + '?ulli=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
> }
> xlocationhref=locationhref;
> if (recipient.trim() != '') {
> if (1 == 1) {
> processit();
> } else {
> document.getElementById('spareshare').href='sms:' + recipient.replace(/\ /g,'') + '&body=' + encodeURIComponent(locationhref + locationhash);
> document.getElementById('spareshare').click();
> recipient='';
> }
> }
> }
> }
> }
>
> function analyze(tao) {
> if (tao.value.trim() != '') {
> document.getElementById('ulli').disabled=false;
> document.getElementById('utable').disabled=false;
> document.getElementById('semail').style.display='inline-block';
> document.getElementById('ssms').style.display='inline-block';
> }
> }
>
25,29d138
< } else {
< //alert(897);
< locationhash='#bmkdata=' + window.btoa(encodeURIComponent(document.getElementById('bmkdata').value));
< locationhref=document.URL.split('?')[0].split('#')[0] + '?utable=y&dtone=' + encodeURIComponent(document.getElementById('dtone').value) + '&dttwo=' + encodeURIComponent(document.getElementById('dttwo').value); // + '#bmkdata=' + encodeURIComponent(document.getElementById('bmkdata').value);
< processit();
125,126d233
< } else if (withinstart != -1) {
< document.getElementById('resulting').innerHTML=' ' + eval(eval(withinend - withinstart) / 1000.0) + ' seconds.
';
132a240,264
>
> function fillin() {
> if (document.getElementById('rt') && document.getElementById('rd') && document.getElementById('rs')) {
> if (document.getElementById('rd').innerHTML == document.getElementById('rs').outerHTML) {
> document.getElementById('rd').innerHTML=document.getElementById('rs').outerHTML + document.getElementById('rt').value;
> }
> }
> }
>
> function yesthreethree(restis) {
> if (document.getElementById('bmkdata')) {
> if (restis.indexOf('data:') == 0) {
> if (restis.indexOf(';base64,') != -1) {
> document.getElementById('bmkdata').value='' + window.atob(restis.split(';base64,')[1]);
> analyze(document.getElementById('bmkdata')); //document.getElementById('bmkdata').blur();
> } else if (restis.indexOf(';utf8,') != -1) {
> document.getElementById('bmkdata').value='' + (restis.split(';utf8,')[1]);
> analyze(document.getElementById('bmkdata')); //document.getElementById('bmkdata').blur();
> }
> } else {
> document.getElementById('bmkdata').value=restis;
> analyze(document.getElementById('bmkdata')); //document.getElementById('bmkdata').blur();
> }
> }
> }
145d276
<
147,148d277
<
<
150,157c279,290
< Button Innards
< RJM Programming - August, 2025
<
<