PageSourceSearch

https://dep.qu.edu.iq/qg/wp-content/plugins/codevz-plus/assets/js/share.js?ver=5.0

js qu.edu.iq collected 2026-10-01 14:39:07 UTC 1,677 bytes, 73 lines download raw bytes

1jQuery( function( $ ) {
2	"use strict";
3
4	Codevz_Plus.share = function() {
5
6		var body = $( document.body );
7
8		// Share icons.
9		body.on( 'click', '.xtra-share a', function() {
10
11			var $this = $( this ), 
12				href = $this.attr( 'href' );
13
14			// Copy shortlink.
15			if ( $this.find( '.fa-copy' ).length ) {
16
17				var $temp = $( '<input>' );
18				body.append( $temp );
19				$temp.val( href ).select();
20				document.execCommand( 'copy' );
21				$temp.remove();
22
23				var title = $this.attr( 'data-title' );
24				$this.attr( 'style', 'animation: xtraCopyAbsorber .8s forwards;' ).attr( 'data-title', $this.attr( 'data-copied' ) ).delay( 2000 ).queue( function(){
25					$this.removeAttr( 'style' ).attr( 'data-title', title );
26				});
27
28				return false;
29
30			// Print modal.
31			} else if ( href.indexOf( 'http' ) === 0 ) {
32
33				window.open( href, "null", "height=300, width=600, top=200, left=200" );
34
35				return false;
36			}
37
38		// Print.
39		}).on( 'click', '.cz-print', function() {
40
41			if ( ! $( '#print-me' ).length ) {
42				body.append( '<div id=\"xtraPrint\"></div>' );
43			}
44
45			var print = $( '#xtraPrint' );
46
47			$( '.xtra-post-title, .page_title .codevz-section-title, .cz_single_fi, .cz_post_content, .xtra-single-product' ).clone().appendTo( print );
48
49			print.find( '.cz_single_fi' ).after( '<br />' );
50			print.find( '.xtra-post-title' ).css( 'font-size', '28px' );
51
52			body.addClass( 'xtra-printing' );
53
54			setTimeout( function() {
55
56				window.print();
57
58			}, 250 );
59
60			setTimeout( function() {
61
62				body.removeClass( 'xtra-printing' );
63				print.empty();
64
65			}, 1000 );
66
67		});
68
69	};
70
71	Codevz_Plus.share();
72
73});

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.