How to Use Google Input Tools in Website

If you want to add google input tools you can use below code to add it <script type=”text/javascript” src=”http://www.google.com/jsapi”> </script> <script type=”text/javascript”> // Load the Google Transliteration API google.load(“elements”, “1”, { packages: “transliteration” }); function onLoad() { var options = { sourceLanguage: ‘en’, destinationLanguage: [‘ml’, ‘hi’,’kn’,’ta’,’te’], shortcutKey: ‘ctrl+m’, transliterationEnabled: true }; // Create an instance […]

Read More

Iframe code with random time

If you want to change multiple webpage inside a iframe which changes in random time gap , Use this code to generate random time spent on website <iframe src=”URL-HERE” id=”myFrame” width=”1px” marginwidth=”0″ height=”1px” marginheight=”0″ align=”middle” scrolling=”no” frameBorder=”0″></iframe> <script> function getRandomInt(min, max) {  min = Math.ceil(min);  max = Math.floor(max);  return Math.floor(Math.random() * (max – min)) + […]

Read More

Fetch excel data directly to Google Sheet from Email

Here is the code // GLOBALS //Array of file extension which you would like to extract to Drive var fileTypesToExtract = [‘xlsx’]; //Name of the folder in google drive i which files will be put var folderName = ‘FOLDER NAME’; //Name of the label which will be applied after processing the mail message var labelName […]

Read More

Adsense API

Get Adsense data directly to your google sheet. Here is the app script for this.   function generateReport() { var ss = SpreadsheetApp.openById(“SHEET ID HERE”); var sheet = ss.getSheetByName(‘adsense1’); var adnetwork = “ADSENSE”; var startDate = getYesterdayDate(); var endDate = getYesterdayDate(); var adClientId = “ca-pub-ADSENSE PUB ID HERE”; var args = { ‘filter’: [‘AD_CLIENT_ID==’ + […]

Read More

wordpress placing “text/rocketscript” instead of “text/javascript” when using wp_register_script()

If you are using cloudflare with the wordpress then you might have some problem related to javascript, it automatically created rocketscript,hence some sync data will not appear..you can easily solve this by doing this.. It is easy to fix. You must change the following tag: <script type=”text/javascript”></script> add: data-cfasync=”false” example: <script data-cfasync=”false” type=”text/javascript></script>

Read More