PageSourceSearch

https://digimarcon.com/wp-content/plugins/copy-to-clipboard-mobile-web/lmcbutton.js

js digimarcon.com collected 2026-09-29 03:06:08 UTC 2,039 bytes, 52 lines download raw bytes

1// LettersMarket Clipboard Button
2// LMCButton
3// http://www.lettersmarket.com
4
5function isNotEmpty(str) {
6 return !((str == undefined) || (str == ''));
7}
8
9function showCopyPopUp(cliptext, capt){
10	var top = (jQuery(window).height()/4) + (jQuery(window).scrollTop()) ;
11	jQuery(".pw-clippy-div").css('top', top + "px");
12	jQuery('#pw-clippy-header').html("<strong>"+capt+"</strong>");
13	jQuery("#pw-clippy-text").val(decodeURIComponent(cliptext));
14	jQuery('.pw-clippy-div').slideDown();
15	jQuery("#pw-clippy-text").select();
16}
17
18function ShowLMCButton(cliptext, capt, js, furl, width, height)
19{
20	//if(true){
21	if(!FlashDetect.installed){
22		var params = encodeURIComponent(cliptext);//.replace(/'/g, "\\'");
23		var header = "Copy to Clipboard";
24		 document.write('<input type="submit" onClick="showCopyPopUp(\''+params+'\', \'Select All, Copy And Paste\');'+js+';" value="'+capt+'" />');
25	}
26	else{
27		 var params = 'txt=' + encodeURIComponent(cliptext); 
28		 if (!isNotEmpty(furl)) { furl = "lmcbutton.swf"; }
29		 if (isNotEmpty(capt)) { params += '&capt=' + capt; }
30		 if (isNotEmpty(js)) { params += '&js=' + js; }
31		 
32		document.write('<object width="'+width+'" height="'+height+'">');
33		document.write(' <param name="movie" value="' + furl + '">');
34		document.write(' <PARAM NAME=FlashVars VALUE="' + params + '">');
35		document.write('<PARAM NAME=wmode VALUE="transparent"><param name="scale" value="exactfit" >');
36		document.write(' <embed src="' + furl + '" flashvars="' + params + '" scale="exactfit"   width="'+width+'" height="'+height+'"></embed>');
37		document.write('</object>');
38	}
39
40//alert('file: ' + furl + ' Params: ' + params); // debug
41}
42
43function pwTrackGoogleEvent(capt, flash){
44	if(!(typeof ga === 'undefined'))
45	{
46		ga('send', 'event', 'CopyToClipboard', 'click', capt+" "+((flash)?"With Flash":"Without Flash"), 1);
47	}
48	else if(!(typeof _gaq === 'undefined'))
49	{
50		 _gaq.push(['_trackEvent', 'CopyToClipboard', 'click', capt+" "+((flash)?"With Flash":"Without Flash"), 1]);
51	}
52}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.