1 /*------------------------------------------------------------------------------------ 2 Facebook calling here 3 --------------------------------------------------------------------------------------*/ 4 5 function openFacebookwindow() 6 { 7 var fromwhere = $('.detail').val(); 8 var RirectURL = $('#redirectURL').val(); 9 var product_id = $('.current_product_id').val(); 10 11 if( typeof login_for_discuss != "undefined" && login_for_discuss == 1){ 12 RirectURL += '_quiz_discuss_box55712KLM'; 13 } 14 15 var newwindow; 16 var screenX = typeof window.screenX != 'undefined' ? window.screenX : window.screenLeft, 17 screenY = typeof window.screenY != 'undefined' ? window.screenY : window.screenTop, 18 outerWidth = typeof window.outerWidth != 'undefined' ? window.outerWidth : document.body.clientWidth, 19 outerHeight = typeof window.outerHeight != 'undefined' ? window.outerHeight : (document.body.clientHeight - 22), 20 width = 600, 21 height = 370, 22 left = parseInt(screenX + ((outerWidth - width) / 2), 10), 23 top = parseInt(screenY + ((outerHeight - height) / 2.5), 10), 24 features = ( 25 'width=' + width + 26 ',height=' + height + 27 ',left=' + left + 28 ',top=' + top 29 ); 30 31 32 if(fromwhere=='manage') 33 { 34 artclasses = window.open("/training/Facebook/?id_provider=Facebook&redirect_url="+RirectURL+'manage/delaymanage.php?product_id='+product_id+'&identity='+fromwhere,'Login_by_facebook',features); 35 } 36 else if(fromwhere=='personality_manage') 37 { 38 artclasses = window.open("/training/Facebook/?id_provider=Facebook&redirect_url="+RirectURL+'manage/delaymanage.php?product_id='+product_id+'&identity='+fromwhere,'Login_by_facebook',features); 39 } 40 else if(fromwhere=='myarticles') 41 { 42 artclasses = window.open("/training/Facebook/?id_provider=Facebook&redirect_url="+RirectURL+'myarticles/delaymanage.php?product_id='+product_id+'&identity='+fromwhere,'Login_by_facebook',features); 43 } 44 else 45 { 46 artclasses=window.open('/training/Facebook/?id_provider=Facebook&request=login&redirect_url='+RirectURL,'Login_by_facebook',features); 47 } 48 49 } 50 51 /*--------------------------------------------------------------------------------------*/ 52 53 54 /*--------------------------------------------------------------------------------------- 55 Google calling here 56 ----------------------------------------------------------------------------------------*/ 57 58 function openGooglewindow() 59 { 60 var fromwhere = $('.detail').val(); 61 var RirectURL = $('#redirectURL').val(); 62 var product_id = $('.current_product_id').val(); 63 var registerurl = $('#REQUEST_URI').val(); 64 65 66 if( typeof login_for_discuss != "undefined" && login_for_discuss == 1){ 67 var registerurl_split = registerurl.split( '&' ); 68 registerurl_split[0] += '_quiz_discuss_box55712KLM'; 69 registerurl = registerurl_split[0]; 70 } 71 72 var current_link_url = $('.current_link_url').val(); 73 74 if(fromwhere=='manage') 75 { 76 77 artclasses = window.open("/root-api/social/Google/oauth2callback/index.php?id_provider=Google&redirect_url="+RirectURL+'manage/delaymanage.php?product_id='+product_id+'¤t_link_url='+current_link_url+'&identity='+fromwhere+'®isterurl='+registerurl, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 78 79 artclasses.moveTo (300,100); 80 } 81 else if(fromwhere=='personality_manage') 82 { 83 84 artclasses = window.open("/root-api/social/Google/oauth2callback/index.php?id_provider=Google&redirect_url="+RirectURL+'manage/delaymanage.php?product_id='+product_id+'¤t_link_url='+current_link_url+'&identity='+fromwhere+'®isterurl='+registerurl, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 85 86 artclasses.moveTo (300,100); 87 } 88 else if(fromwhere =='myarticles') 89 { 90 console.log("/root-api/social/Google/oauth2callback/index.php?id_provider=Google&redirect_url="+RirectURL+'myarticles/delaymanage.php?product_id='+product_id+'¤t_link_url='+current_link_url+'&identity='+fromwhere+'®isterurl='+registerurl); 91 92 artclasses = window.open("/root-api/social/Google/oauth2callback/index.php?id_provider=Google&redirect_url="+RirectURL+'myarticles/delaymanage.php?product_id='+product_id+'¤t_link_url='+current_link_url+'&identity='+fromwhere+'®isterurl='+registerurl, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 93 artclasses.moveTo (300,100); 94 } 95 else 96 { 97 98 artclasses = window.open("/root-api/social/Google/oauth2callback/index.php?id_provider=Google&redirect_url="+RirectURL+'®isterurl='+registerurl, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 99 artclasses.moveTo (300,100); 100 } 101 102 } 103 104 /*--------------------------------------------------------------------------------------*/ 105 106 107 /*--------------------------------------------------------------------------------------- 108 Twitter calling here 109 ----------------------------------------------------------------------------------------*/ 110 function openTwitterwindow() 111 { 112 var fromwhere = $('.detail').val(); 113 var RirectURL = $('#redirectURL').val(); 114 var product_id = $('.current_product_id').val(); 115 var current_link_url = $('.current_link_url').val(); 116 117 if( typeof login_for_discuss != "undefined" && login_for_discuss == 1){ 118 RirectURL += '_quiz_discuss_box55712KLM'; 119 } 120 121 if(fromwhere=='manage') 122 { 123 artclasses = window.open("/root-api/social/Twitter/?id_provider=Twitter&redirect_url="+RirectURL+'manage/delaymanage.php?product_id='+product_id+'¤t_link_url='+current_link_url+'&identity='+fromwhere, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 124 artclasses.moveTo (300,100);
125 } 126 else if(fromwhere=='personality_manage') 127 { 128 artclasses = window.open("/root-api/social/Twitter/?id_provider=Twitter&redirect_url="+RirectURL+'manage/delaymanage.php?product_id='+product_id+'¤t_link_url='+current_link_url+'&identity='+fromwhere, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 129 artclasses.moveTo (300,100); 130 } 131 else if(fromwhere =='myarticles') 132 { 133 artclasses = window.open("/root-api/social/Twitter/?id_provider=Twitter&redirect_url="+RirectURL+'myarticles/delaymanage.php?product_id='+product_id+'¤t_link_url='+current_link_url+'&identity='+fromwhere, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 134 artclasses.moveTo (300,100); 135 } 136 else 137 { 138 artclasses = window.open("/root-api/social/Twitter/?id_provider=Twitter&redirect_url="+RirectURL, "artclasses", " location = 1, resizable = yes, status = 1, scrollbars = 1, width = 950, height=500"); 139 artclasses.moveTo (300,100); 140 } 141 } 142 143 144 function openLinkedInwindow() 145 { 146 var fromwhere = $('.detail').val(); 147 var RirectURL = $('#redirectURL').val(); 148 var product_id = $('#product').val(); 149 var course_id = $('#courseid_login').val(); 150 151 if( typeof login_for_discuss != "undefined" && login_for_discuss == 1){ 152 RirectURL += '_quiz_discuss_box55712KLM'; 153 } 154 155 var newwindow; 156 var screenX = typeof window.screenX != 'undefined' ? window.screenX : window.screenLeft, 157 screenY = typeof window.screenY != 'undefined' ? window.screenY : window.screenTop, 158 outerWidth = typeof window.outerWidth != 'undefined' ? window.outerWidth : document.body.clientWidth, 159 outerHeight = typeof window.outerHeight != 'undefined' ? window.outerHeight : (document.body.clientHeight - 22), 160 width = 600, 161 height = 500, 162 left = parseInt(screenX + ((outerWidth - width) / 2), 10), 163 top = parseInt(screenY + ((outerHeight - height) / 2.5), 10), 164 features = ( 165 'width=' + width + 166 ',height=' + height + 167 ',left=' + left + 168 ',top=' + top 169 ); 170 171 artclasses = window.open("/root-api/social/linkedIn/?redirect_url="+RirectURL+'&product_id='+product_id,'Login_by_LinkedIn',features); 172 173 } 174 175 function openMicrosoftwindow() 176 { 177 var fromwhere = $('.detail').val(); 178 var RirectURL = $('#redirectURL').val(); 179 var product_id = $('#product').val(); 180 var course_id = $('#courseid_login').val(); 181 182 if( typeof login_for_discuss != "undefined" && login_for_discuss == 1){ 183 RirectURL += '_quiz_discuss_box55712KLM'; 184 } 185 186 var newwindow; 187 var screenX = typeof window.screenX != 'undefined' ? window.screenX : window.screenLeft, 188 screenY = typeof window.screenY != 'undefined' ? window.screenY : window.screenTop, 189 outerWidth = typeof window.outerWidth != 'undefined' ? window.outerWidth : document.body.clientWidth, 190 outerHeight = typeof window.outerHeight != 'undefined' ? window.outerHeight : (document.body.clientHeight - 22), 191 width = 600, 192 height = 500, 193 left = parseInt(screenX + ((outerWidth - width) / 2), 10), 194 top = parseInt(screenY + ((outerHeight - height) / 2.5), 10), 195 features = ( 196 'width=' + width + 197 ',height=' + height + 198 ',left=' + left + 199 ',top=' + top 200 ); 201 202 artclasses = window.open("/root-api/social/Microsoft/?redirect_url="+RirectURL+'&product_id='+product_id,'Login_by_Microsoft',features); 203 204 } 205 206 207 208 209 210 211 212 /*--------------------------------------------------------------------------------------*/
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.