Guest User

Untitled

a guest
Mar 13th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.41 KB | None | 0 0
  1. <script src="https://connect.facebook.net/en_US/all.js"></script>
  2.  
  3. */
  4.  
  5. var TenhoInteresse = {
  6.  
  7. /* Tenho Interesse */
  8.  
  9. blockRedActive: '',
  10.  
  11. /* Usado nas páginas de Campanhas */
  12. esconderForm: true,
  13. /**
  14. init: TenhoInteresse.startTenhoInteresse({titulo: 'Tenho Interesse', descricao: 'Preencha o formulário', periodo: true, flOrigem: 'CS', unidade: true})
  15.  
  16. @param titulo : String
  17. @param descricao: String
  18. @param periodo : true or false,
  19. @param flOrigem : String,
  20. @param unidade : true or false,
  21. @param unidadeDisplay: true or false,
  22. @param fbConnect: true or false,
  23. @param double : true or false,
  24. @param blockDisplay : true or false
  25. */
  26. startTenhoInteresse: function(object){
  27.  
  28. // sempre será true
  29. object.unidade = true;
  30.  
  31. var hidden = 'inside-hiden-content';
  32. var iconClose = '<a class="close-content-custom" onclick="TenhoInteresse.closeContent();"></a>';
  33.  
  34. // se for true mostrar o bloco, por exemplo, na página de Land Pages
  35. if(object.blockDisplay){
  36. object.blockDisplay = 'block';
  37. hidden = '';
  38. iconClose = '';
  39. TenhoInteresse.esconderForm = false;
  40. }else{
  41. object.blockDisplay = 'none';
  42. }
  43.  
  44. var html =
  45. '<span class="content '+hidden+' white" id="tenho-interesse" style="display: '+object.blockDisplay+'">'+
  46. iconClose+
  47. ' <article>'+
  48. ' <hgroup>'+
  49. ' <h3 style="color: black">'+object.titulo+'</h3>'+
  50. ' <p>'+
  51. object.descricao+
  52. ' </p>'+
  53. ' </hgroup>'+
  54. ' <form class="default-container" id="form-tenho-interesse">'+
  55. //' <input type="hidden" name="txtFilial" id="txtFilial" value="0">'+
  56. ' <input type="hidden" name="dsParamCanal" id="dsParamCanal" value="">'+
  57. ' <input type="hidden" name="dsFormatCanal" id="dsFormatCanal" value="">'+
  58. ' <input type="hidden" name="dsCreativeCanal" id="dsCreativeCanal" value="">'+
  59. ' <input type="hidden" name="servletCarregaLista" id="servletCarregaLista" value="/wps/PA_CIsaTenhoInteresse/ServletCarregaFiliais">'+
  60. ' <input type="hidden" name="servletTenhoInteresse" id="servletTenhoInteresse" value="/wps/PA_CIsaTenhoInteresse/ServletCadProspect">'+
  61. ' <input type="hidden" name="flOrigem" id="flOrigem" value="'+object.flOrigem+'">'+
  62. ' <input type="hidden" name="txtOrigemPagina" id="txtOrigemPagina" value="">'+
  63. ' <input type="hidden" name="txtTipoCadastro" id="txtTipoCadastro" value="CI">'+
  64. ' <span class="field-group field-full">'+
  65. ' <input type="text" class="input-default input-last" placeholder="Nome Completo" id="txtNome" name="txtNome">'+
  66. ' </span>'+
  67. ' <span class="field-group field-full">'+
  68. ' <input type="email" class="input-default input-last" placeholder="E-mail" id="txtEmail" name="txtEmail">'+
  69. ' </span>'+
  70. ' <span class="field-group field-full">'+
  71. ' <input type="text" class="input-default input-last" placeholder="Telefone" id="txtTelefone" name="txtTelefone">'+
  72. ' </span>';
  73.  
  74.  
  75. var txtOrigemPaginaCert;
  76.  
  77. txtOrigemPaginaCert = window.location.pathname.split('/').pop();
  78.  
  79.  
  80. if(txtOrigemPaginaCert == 'toeflibt' || txtOrigemPaginaCert == 'ieltsukvi' || txtOrigemPaginaCert == 'ieltslifeskills' || txtOrigemPaginaCert == 'ielts' || txtOrigemPaginaCert == 'anac' || txtOrigemPaginaCert == 'celta' || txtOrigemPaginaCert == 'testesproficiencia'){
  81. html+=
  82. '<input type="hidden" name="txtFilial" id="txtFilial" value="153">';
  83. }else if (txtOrigemPaginaCert == 'vila-leopoldina'){
  84. html+=
  85. '<input type="hidden" name="txtFilial" id="txtFilial" value="1">';
  86. }else {
  87. html+=
  88. '<input type="hidden" name="txtFilial" id="txtFilial" value="0">';
  89. }
  90.  
  91.  
  92. if(object.unidade == true){
  93. // Carrega lista oculta das unidades da Cultura Inglesa
  94.  
  95. if(object.unidadeDisplay){
  96. object.unidadeDisplay = 'block';
  97. }else{
  98. object.unidadeDisplay = 'none';
  99. }
  100.  
  101. html +=
  102. ' <div id="dvFilial" class="field-group field-full active" style="display:'+object.unidadeDisplay+'"></div>'+
  103. ' <div id="flag" style="display: none;">'+
  104. ' <span style="display:none">Carrega lista oculta das unidades da Cultura Inglesa</span>'+
  105. ' </div>';
  106. }
  107.  
  108. html+=
  109. ' <div id="mensagemRetorno"></div>';
  110.  
  111. if(object.periodo == true){
  112. html +=
  113. ' <span class="field-group field-full active" id="periodo-contato" style="font-weight: bold; display: block; text-align: center;">'+
  114. ' <label> <b>Prefiro ser contatado(a) durante: </b></label><br>'+
  115. ' <input type="checkbox" name="chk_manha" id="chk_manha" value="manha" ></input> <label for="chk_manha" > <b>Manhã&nbsp; </b> </label>&nbsp;'+
  116. ' <input type="checkbox" name="chk_tarde" id="chk_tarde" value="tarde" ></input> <label for="chk_tarde" > <b>Tarde&nbsp; </b> </label>&nbsp;'+
  117. ' <input type="checkbox" name="chk_noite" id="chk_noite" value="noite" ></input> <label for="chk_noite" > <b>Noite&nbsp; </b> </label>&nbsp;'+
  118. ' <input type="checkbox" name="chk_sabado" id="chk_sabado" value="sabado"></input> <label for="chk_sabado"> <b>Sábado&nbsp; </b> </label>&nbsp;'+
  119. ' </span>';
  120. }
  121.  
  122.  
  123.  
  124. if(object.fbConnect == true){
  125.  
  126. html +=
  127. ' <span class="btn-group" id="fb-connect" style="float: left; cursor: pointer">'+
  128. ' <div class="g-recaptcha" data-sitekey="6LdjNUwUAAAAAHodXKgNJjXvOfZe7X6fDhslgHhf"></div>'+
  129. ' <a class="btn-block fb-connect" onclick="FacebookConnect.open();dataLayer.push({'event': 'clickEvent', 'eventCategory': ''+txtOrigemPaginaCert+'', 'eventAction': 'clique:facebook', 'eventLabel': ''+txtOrigemPaginaCert+''});" style="background: #3b5998">Facebook</a>'+
  130. ' </span>';
  131. }
  132.  
  133. html +=
  134. ' <span class="btn-group" style="float: right; cursor: pointer">'+
  135. ' <a class="btn-block" id="send" onclick="TenhoInteresse.enviarDados();">Enviar</a>'+
  136. ' <img src="/wps/wcm/connect/3a597c1b-955c-480f-9a72-373d3e401ff2/loading.gif?MOD=AJPERES&CACHEID=3a597c1b-955c-480f-9a72-373d3e401ff2" id="loading" style="display:none;"/>'+
  137. ' </span>'+
  138. ' <p><br /></p>'+
  139. ' <script src="https://www.google.com/recaptcha/api.js" async defer></script>'+
  140. ' </form>'+
  141. ' </article>'+
  142. '</span>';
  143.  
  144. // CSS
  145. html +=
  146. ' <style>'+
  147. ' .close-content-custom {'+
  148. ' display: block;'+
  149. ' position: absolute;'+
  150. ' right: 15px;'+
  151. ' top: 15px;'+
  152. ' cursor: pointer;'+
  153. ' width: 29px;'+
  154. ' height: 50px;'+
  155. ' z-index: 10;'+
  156. ' background: url(/wps/wcm/connect/8f91142b-9775-4868-bc17-6bc4444d4ec0/close-2.png?MOD=AJPERES) no-repeat;'+
  157. ' cursor: pointer;'+
  158. ' }'+
  159. ' #blocks .text-left article hgroup h4, #blocks .text-left article hgroup h6, #blocks .text-left article hgroup h3 {'+
  160. ' text-align: center;'+
  161. ' }'+
  162. // contolar resolução
  163. ' #mensagemRetorno {'+
  164. ' position: absolute;'+
  165. ' bottom: 80px;'+
  166. ' font-weight: bold;'+
  167. ' color: red;'+
  168. ' }'+
  169. ' @media screen and (min-width: 1220px) and (max-width: 1500px){'+
  170. ' #mensagemRetorno {'+
  171. ' bottom: 50px;'+
  172. ' }'+
  173. ' }'+
  174. ' </style>';
  175.  
  176. $('#block-tenho-interesse').html(html);
  177.  
  178. /* depois de montar o template, chamar as funções necessárias */
  179.  
  180. // carregar servlet de filiais
  181. if(object.unidade == true){
  182. TenhoInteresse.loadFiliais();
  183. }
  184.  
  185. // obter final da URL
  186. TenhoInteresse.getURL();
  187.  
  188. // obter código CD quando for 'none'
  189. if(object.unidadeDisplay == 'none'){
  190. TenhoInteresse.obterCDUnidade();
  191. }
  192.  
  193. $('#dsParamCanal').val(TenhoInteresse.obterParametroUrl('pCanal'));
  194. $('#dsFormatCanal').val(TenhoInteresse.obterParametroUrl('fmtCanal'));
  195. $('#dsCreativeCanal').val(TenhoInteresse.obterParametroUrl('ctvCanal'));
  196.  
  197. $('#txtTelefone').setMask('cel');
  198.  
  199. $('#txtTelefone').blur(function(e){
  200. TenhoInteresse.formataFone($(this));
  201. });
  202.  
  203. // corrgigir bug block red
  204. if(object.flOrigem == 'CS' || object.flOrigem == 'CE'){
  205. //TenhoInteresse.bugBlockRed();
  206. TenhoInteresse.blockRedActive = object.flOrigem;
  207. }
  208. },
  209.  
  210. getURL: function(){
  211. $('#txtOrigemPagina').val(window.location.pathname.split('/').pop());
  212. },
  213.  
  214. bugBlockRed: function(){
  215. /* Quando o block é red, o layout não fica amigavél */
  216. if($('#porque-fazer').hasClass('active')){
  217. $('#porque-fazer').removeClass('active').removeClass('white').addClass('red');
  218. }else{
  219. $('#porque-fazer').addClass('active').removeClass('red').addClass('white');
  220. }
  221. },
  222.  
  223. enviarDados: function(){
  224. var nome = $("#txtNome").val();
  225. var email = $("#txtEmail").val();
  226. var telefone = $("#txtTelefone").val();
  227. var unidades = $("#txtFilial").val();
  228. var msg = "";
  229.  
  230. var manha = $("#chk_manha").prop('checked');
  231. var tarde = $("#chk_tarde").prop('checked');
  232. var noite = $("#chk_noite").prop('checked');
  233. var sabado = $("#chk_sabado").prop('checked');
  234.  
  235. var resultEnviarDados;
  236. var txtPagina = window.location.pathname.split('/').pop();
  237.  
  238.  
  239. if((nome == null) || (nome == "") || (nome == 'undefined')){
  240. msg = "*O campo nome completo não foi preenchido.";
  241. }else if((email == null) || (email == "") || (email == 'undefined') || (!TenhoInteresse.validaEmail(email))) {
  242. msg = "*O campo email não foi preenchido corretamente.";
  243. }else if((telefone == null) || (telefone == "") || (telefone == 'undefined')){
  244. msg = "*O campo telefone não foi preenchido.";
  245. }else if($('#dvFilial').hasClass('active')){
  246. if(unidades == "0"){
  247. msg = "*Selecione a unidade.";
  248. }
  249. }
  250.  
  251.  
  252. enviarDados = function() {
  253. var recaptcha = document.forms["enviarDados"]["g-recaptcha-response"];
  254. recaptcha.required = true;
  255. recaptcha.oninvalid = function(e) {
  256. // Mensagem para o usuário
  257. alert("Por favor complete o raCaptcha");
  258.  
  259. }
  260. }
  261.  
  262.  
  263. /*if($('#periodo-contato').hasClass('active')){
  264. if(msg.length == 0){
  265. if(!manha || !tarde || !noite || !sabado){
  266. msg = "Selecione pelo menos um horário de contato.";
  267. }
  268. }
  269. }*/
  270.  
  271. if(msg.length > 0){
  272. $('#mensagemRetorno').html(msg);
  273. //alert(msg);
  274. resultEnviarDados = "incorreto";
  275. dataLayer.push({'event': 'clickEvent', 'eventCategory': 'lp:'+txtPagina+'', 'eventAction': 'contato:click', 'eventLabel': 'cadastro:'+resultEnviarDados+''});
  276.  
  277. return false;
  278. } else {
  279.  
  280. resultEnviarDados = "sucesso";
  281. dataLayer.push({'event': 'clickEvent', 'eventCategory': 'lp:'+txtPagina+'', 'eventAction': 'contato:click', 'eventLabel': 'cadastro:'+resultEnviarDados+''});
  282.  
  283.  
  284. $('#loading').show();
  285. $('#send').hide();
  286.  
  287. $('#flag').load($('#servletTenhoInteresse').val(), $('#form-tenho-interesse').serialize(), function() {
  288. if ($('#flag').html().indexOf('</div>') == -1 && $('#flag').html().indexOf('</DIV>') == -1) {
  289. eval($('#flag').html());
  290. //$('#porque-fazer').addClass('red').removeClass('white');
  291. $('#txtNome').val('');
  292. $('#txtEmail').val('');
  293. $('#txtTelefone').val('');
  294. $('#txtFilialX').val('')
  295. $('#loading').hide();
  296. $('#send').show();
  297. if(TenhoInteresse.esconderForm){
  298. $('#mensagemRetorno').html("Seu cadastro foi realizado com sucesso!");
  299. //alert('Seu cadastro foi realizado com sucesso! Em breve a unidade entrará em contato.');
  300. //TenhoInteresse.closeContent(/*'#tenho-interesse'*/);
  301. //TenhoInteresse.bugBlockRed();
  302. }
  303. } else {
  304. alert($('#flag').html());
  305. $('#loading').hide();
  306. $('#send').show();
  307. }
  308. });
  309. }
  310. },
  311.  
  312. validaEmail: function(email){
  313. var filter = /^([w-]+(?:.[w-]+)*)@((?:[w-]+.)*w[w-]{0,66}).([a-z]{2,6}(?:.[a-z]{2})?)$/i;
  314.  
  315. if(filter.test(email)){
  316. return true;
  317. }
  318. return false;
  319. },
  320.  
  321. formataFone: function(input){
  322. var telefone = $(input).val();
  323.  
  324. if (telefone.trim().length == 14) {
  325. var v = telefone.trim();
  326. v=v.replace(/D/g,"") //Remove tudo o que não é dígito
  327. v=v.replace(/^(dd)(d)/g,"($1) $2") //Coloca parênteses em volta dos dois primeiros dígitos
  328. v=v.replace(/(d{4})(d)/,"$1-$2") //Coloca hífen entre o quarto e o quinto dígitos
  329. $(input).val(v);
  330. }
  331. else if (telefone.trim().length == 15) {
  332. var v = telefone.trim();
  333. v=v.replace(/D/g,"") //Remove tudo o que não é dígito
  334. v=v.replace(/^(dd)(d)/g,"($1) $2") //Coloca parênteses em volta dos dois primeiros dígitos
  335. v=v.replace(/(d{5})(d)/,"$1-$2") //Coloca hífen entre o quarto e o quinto dígitos
  336. $(input).val(v);
  337. }
  338. },
  339.  
  340. changeContent: function(value){
  341. $(value).css('display', 'table');
  342.  
  343. $(".hiden-content").each(function(){
  344. if(!$(this).hasClass("inside-hiden-content")){
  345. if($(this).attr("ref-id")!=$(value).attr("ref-id")){
  346. $(this).slideUp();
  347. }
  348. }
  349. });
  350.  
  351. $(value).slideDown(function(){
  352. var body = $("html, body"), destino;
  353. if($(window).width()<768){
  354. destino = $(value).offset().top-50;
  355. } else {
  356. destino = $(value).offset().top-90;
  357. }
  358.  
  359. body.animate({scrollTop:destino}, '300', 'swing');
  360. });
  361.  
  362. // corrgigir bug block red
  363. if(TenhoInteresse.blockRedActive == 'CS' || TenhoInteresse.blockRedActive == 'CE'){
  364. TenhoInteresse.bugBlockRed();
  365. }
  366. },
  367.  
  368. closeContent: function(){
  369. TenhoInteresse.bugBlockRed();
  370. $('#porque-fazer').addClass('red').removeClass('white');
  371. $('#tenho-interesse').hide();
  372. $('#mensagemRetorno').text('');
  373.  
  374. },
  375.  
  376. loading: function(){
  377. $('#send').hide();
  378. $('#loading').show();
  379. },
  380.  
  381. loadFiliais: function(){
  382. $('#flag').load($('#servletCarregaLista').val(), $('#form-tenho-interesse').serialize(), function(){
  383. if ($('#flag').html().indexOf('</div>') > 0 || $('#flag').html().indexOf('</div>') > 0){
  384. var filial = $('#dvFilial');
  385.  
  386. eval(filial.html($('#flag').html()));
  387.  
  388. } else {
  389. alert($('#flag').html());
  390. }
  391. });
  392. },
  393.  
  394. setFilial: function(obj){
  395. var selectedText = document.getElementById("txtFilialX").options[obj.selectedIndex].value;
  396. $("#txtFilial").val(selectedText);
  397. },
  398.  
  399. obterParametroUrl: function(parametro){
  400. var parametros = window.location.search.substring(1).split("&");
  401. for (var i = 0; i < parametros.length; i++) {
  402. var splitParametro = parametros[i].split("=");
  403. if (splitParametro[0] == parametro) {
  404. return splitParametro[1];
  405. }
  406. }
  407. },
  408.  
  409. obterCDUnidade: function(){
  410. var unidades = [
  411. {value: 245, nome: 'aclimacao'},
  412. {value: 130, nome: 'alphaville'},
  413. {value: 269, nome: 'americana'},
  414. {value: 191, nome: 'aracatuba'},
  415. {value: 286, nome: 'araraquara'},
  416. {value: 250, nome: 'baraogeraldo'},
  417. {value: 218, nome: 'bauru'},
  418. {value: 199, nome: 'blumenau'},
  419. {value: 13, nome: 'butanta'},
  420. {value: 9, nome: 'campinas'},
  421. {value: 248, nome: 'campolimpo'},
  422. {value: 238, nome: 'carrao'},
  423. {value: 91, nome: 'diadema'},
  424. {value: 239, nome: 'faculdade'},
  425. {value: 198, nome: 'florianopolis'},
  426. {value: 129, nome: 'franca'},
  427. {value: 8, nome: 'granjaviana'},
  428. {value: 24, nome: 'guarulhos'},
  429. {value: 1, nome: 'higienopolis'},
  430. {value: 270, nome: 'indaiatuba'},
  431. {value: 249, nome: 'interlagos'},
  432. {value: 217, nome: 'ipiranga'},
  433. {value: 4, nome: 'itaim'},
  434. {value: 200, nome: 'itajai'},
  435. {value: 233, nome: 'itaquera'},
  436. {value: 244, nome: 'jabaquara'},
  437. {value: 201, nome: 'joinville'},
  438. {value: 185, nome: 'jundiai'},
  439. {value: 285, nome: 'limeira'},
  440. {value: 220, nome: 'marajoara'},
  441. {value: 146, nome: 'maua'},
  442. {value: 192, nome: 'mogidascruzes'},
  443. {value: 11, nome: 'mooca'},
  444. {value: 219, nome: 'morumbi'},
  445. {value: 151, nome: 'osasco'},
  446. {value: 208, nome: 'penha'},
  447. {value: 6, nome: 'pinheiros'},
  448. {value: 194, nome: 'piracicaba'},
  449. {value: 226, nome: 'pirituba'},
  450. {value: 190, nome: 'presidenteprudente'},
  451. {value: 186, nome: 'rioclaro'},
  452. {value: 12, nome: 'santana'},
  453. {value: 10, nome: 'santoamaro'},
  454. {value: 7, nome: 'santoandre'},
  455. {value: 5, nome: 'santos'},
  456. {value: 210, nome: 'saobernardocampo'},
  457. {value: 268, nome: 'saocaetano'},
  458. {value: 187, nome: 'saocarlos'},
  459. {value: 31, nome: 'saojosecampos'},
  460. {value: 134, nome: 'saojoseriopreto'},
  461. {value: 236, nome: 'sapopemba'},
  462. {value: 2, nome: 'saude'},
  463. {value: 152, nome: 'sorocaba'},
  464. {value: 23, nome: 'tatuape'},
  465. {value: 193, nome: 'taubate'},
  466. {value: 3, nome: 'vilamariana'},
  467. {value: 239, nome: 'faculdade'}
  468. ];
  469.  
  470. var url = window.location.href;
  471. var index = url.indexOf('unidades');
  472. var urlUnidade = url.substring(index + 9, url.length);
  473.  
  474. // Se a URL receber parametros não funciona o mapa
  475. urlUnidade = urlUnidade.split('?');
  476. urlUnidade = urlUnidade[0];
  477.  
  478. for(var i = 0; i < unidades.length; i++){
  479. if(unidades[i].nome == urlUnidade){
  480. $("#txtFilial").attr('value', unidades[i].value);
  481. $("#txtFilialX").val(unidades[i].value);
  482. }
  483. }
  484. },
  485.  
  486. /* Para saber se o cadastro foi com os dados do facebook ou CI*/
  487. setCadastro: function(value){
  488. $('#txtTipoCadastro').val(value);
  489. }
  490. }
  491.  
  492. /* Facebook Connect */
  493. var FacebookConnect = {
  494.  
  495. status: false,
  496.  
  497. statusChangeCallback: function(response){
  498. console.log(response);
  499. if (response.status === 'connected') {
  500. FacebookConnect.me();
  501. } else if (response.status === 'not_authorized') {
  502. consonle.log('Please log into this app.');
  503. } else {
  504. console.log('Please log into Facebook.');
  505. }
  506. },
  507.  
  508. checkLoginState: function(){
  509. FB.getLoginStatus(function(response) {
  510. FacebookConnect.statusChangeCallback(response);
  511. });
  512. },
  513.  
  514. me: function(){
  515. var _fields = 'name,gender,email,age_range,devices';
  516. console.log('Welcome! Fetching your information.... ');
  517. FB.api('/me', 'get', {fields: _fields}, function(response) {
  518. console.log('response: ', response);
  519. if(FacebookConnect.status){
  520. FacebookConnect.preencherCampos(response);
  521. }
  522. });
  523. },
  524.  
  525. preencherCampos: function(response){
  526.  
  527. TenhoInteresse.setCadastro('FB');
  528.  
  529. if(response.name != undefined){
  530. $('#txtNome').val(response.name);
  531. $('#fb-connect').hide();
  532. }
  533.  
  534. if(response.email == undefined){
  535. alert('Sua conta no Facebook não permite a exibição do e-mail.');
  536. }else{
  537. $('#txtEmail').val(response.email);
  538. $('#fb-connect').hide();
  539. }
  540.  
  541. },
  542.  
  543. open: function(){
  544. FB.login(function (response) {
  545. FacebookConnect.status = true;
  546. FacebookConnect.statusChangeCallback(response);
  547. }, {scope: 'public_profile,email'});
  548. return false;
  549. }
  550. }
  551.  
  552. window.fbAsyncInit = function() {
  553. FB.init({
  554. appId : '268154816952574',
  555. cookie : true,
  556. xfbml : true,
  557. version : 'v2.8'
  558. });
  559.  
  560. FB.getLoginStatus(function(response) {
  561. FacebookConnect.statusChangeCallback(response);
  562. });
  563. };
  564.  
  565. (function(d, s, id) {
  566. var js, fjs = d.getElementsByTagName(s)[0];
  567. if (d.getElementById(id)) return;
  568. js = d.createElement(s); js.id = id;
  569. js.src = "https://connect.facebook.net/en_US/sdk.js";
  570. fjs.parentNode.insertBefore(js, fjs);
  571. }(document, 'script', 'facebook-jssdk'));
Add Comment
Please, Sign In to add comment