This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type='text/javascript'> | |
| var googletag = googletag || {}; | |
| googletag.cmd = googletag.cmd || []; | |
| (function() { | |
| var gads = document.createElement('script'); | |
| gads.async = true; | |
| gads.type = 'text/javascript'; | |
| var useSSL = 'https:' == document.location.protocol; | |
| gads.src = (useSSL ? 'https:' : 'http:') + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="adBox"> | |
| <div id='div-gpt-ad-AD_UNIT_NAME-1'> | |
| <script type='text/javascript'> | |
| googletag.cmd.push(function() { googletag.display('div-gpt-ad-AD_UNIT_NAME-1'); }); | |
| </script> | |
| </div> | |
| </div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type='text/javascript'> | |
| $(document).ready(function(){ | |
| var checkIframe = setInterval(function bringSecondPhase(){ | |
| if (iframeIsLoaded){ | |
| clearInterval(checkIframe) | |
| console.log("iframe loaded!") | |
| iframeHasAdvertismentAndShowOrHide() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Ajax callback after signup form validation | |
| if (data.status == 'ok'){ | |
| trackSignupOkPageViewToGA() | |
| sendFormToLoginNewUser() | |
| } | |
| //Call GA trackePageview for a fake url | |
| function trackSignupOkPageViewToGA(){ | |
| if (typeof _gaq !== "undefined" && _gaq !== null) { | |
| _gaq.push(['_trackPageview', '/signupDone']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var urlregex = /([a-zA-Z0-9]+[.](aero|asia|biz|cat|com|coop|edu|es|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|xxx)[-a-zA-Z0-9+&@#\/%?=~_|:.,;]*)|((https?:\/\/)?([-a-zA-Z0-9_]+[.])*[-a-zA-Z0-9_]+[.][-a-zA-Z0-9_]+[.][a-zA-Z]+[a-zA-Z]+[-a-zA-Z0-9+&@#\/%?=~_|:.,;]*)|(\b(https?:\/\/)([-a-zA-Z0-9_]+[.])*[-a-zA-Z0-9_]+[.][a-zA-Z]+[a-zA-Z]+[-a-zA-Z0-9+&@#\/%?=~_|:.,;]*)/ig; | |
| return text.replace(exp,"<a href='$1' target='_blank'>$1</a>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private addExtractUrls(){ | |
| String.metaClass.extractUrls = { -> | |
| def urlsList = [] | |
| def matchesUrl = delegate =~ regExForUrls() | |
| matchesUrl.each{ matches -> | |
| urlsList << matches[0] | |
| } | |
| return urlsList |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import groovyx.net.http.HTTPBuilder | |
| import groovyx.net.http.HttpResponseException | |
| import static groovyx.net.http.ContentType.URLENC | |
| import static groovyx.net.http.Method.POST | |
| import static groovyx.net.http.Method.GET | |
| import static groovyx.net.http.ContentType.JSON | |
| @Grapes( | |
| @Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.6') | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function trackSignupOkPageViewToGAAndLogNewUser(){ | |
| fillLoginNewUserForm() | |
| if (typeof _gaq !== "undefined" && _gaq !== null) { | |
| _gaq.push(['_trackPageview', '/signupDone']); | |
| var timeout_for_login = setTimeout(sendFormToLoginNewUser, 300); | |
| } | |
| else sendFormToLoginNewUser() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <fieldType name="string_without_accents" class="solr.TextField" > | |
| <analyzer type="index"> | |
| <tokenizer class="solr.KeywordTokenizerFactory"/> | |
| <filter class="solr.ASCIIFoldingFilterFactory"/> | |
| </analyzer> | |
| <analyzer type="query"> | |
| <tokenizer class="solr.KeywordTokenizerFactory"/> | |
| <filter class="solr.ASCIIFoldingFilterFactory"/> | |
| </analyzer> | |
| </fieldType> |
OlderNewer