Promocode: OCTFEST
Terms & Conditions:
- Flat ₹250 Cashback on Bus Ticket Booking.
- Minimum order value for bus ticket booking is ₹2,000 and is exclusive of insurance and free cancellation.
- Offer is valid for all users.
- Offer is valid for one-time usage per user.
- Cashback will be credited within 24 hours of the successful transaction.
- To avail the offer, the user needs to have a verified mobile number on Paytm.
- Cancelled orders will not be eligible for Cashback.
- Paytm reserves its absolute right to withdraw and/or alter any terms and conditions of the offer at any time without prior notice.
- This Cashback offer is being extended by One97 Communications Limited for using ‘Paytm Payments’ on marketplace, run and operated by Paytm E-Commerce Private Limited. It can be used to pay for anything on merchants accepting ‘Paytm Payments’ platform.
/*!
* Deep-link.js
* https://timseverien.com/projects/deep-link/
*
* Copyright 2014
* Released under MIT license
*/
(function () {
window.visibly = {
q: document,
p: undefined,
prefixes: ['webkit', 'ms','o','moz','khtml'],
props: ['VisibilityState', 'visibilitychange', 'Hidden'],
m: ['focus', 'blur'],
visibleCallbacks: [],
hiddenCallbacks: [],
genericCallbacks:[],
_callbacks: [],
cachedPrefix:"",
fn:null,
onVisible: function (_callback) {
if(typeof _callback == 'function' ){
this.visibleCallbacks.push(_callback);
}
},
onHidden: function (_callback) {
if(typeof _callback == 'function' ){
this.hiddenCallbacks.push(_callback);
}
},
getPrefix:function(){
if(!this.cachedPrefix){
for(var l=0;b=this.prefixes[l++];){
if(b + this.props[2] in this.q){
this.cachedPrefix = b;
return this.cachedPrefix;
}
}
}
},
visibilityState:function(){
return this._getProp(0);
},
hidden:function(){
return this._getProp(2);
},
visibilitychange:function(fn){
if(typeof fn == 'function' ){
this.genericCallbacks.push(fn);
}
var n = this.genericCallbacks.length;
if(n){
if(this.cachedPrefix){
while(n--){
this.genericCallbacks[n].call(this, this.visibilityState());
}
}else{
while(n--){
this.genericCallbacks[n].call(this, arguments[0]);
}
}
}
},
isSupported: function (index) {
return ((this._getPropName(2)) in this.q);
},
_getPropName:function(index) {
return (this.cachedPrefix == "" ?
this.props[index].substring(0, 1).toLowerCase() +
this.props[index].substring(1) : this.cachedPrefix +
this.props[index]);
},
_getProp:function(index){
return this.q[this._getPropName(index)];
},
_execute: function (index) {
if (index) {
this._callbacks = (index == 1) ? this.visibleCallbacks :
this.hiddenCallbacks;
var n = this._callbacks.length;
while(n--){
this._callbacks[n]();
}
}
},
_visible: function () {
window.visibly._execute(1);
window.visibly.visibilitychange.call(window.visibly, 'visible');
},
_hidden: function () {
window.visibly._execute(2);
window.visibly.visibilitychange.call(window.visibly, 'hidden');
},
_nativeSwitch: function () {
this[this._getProp(2) ? '_hidden' : '_visible']();
},
_listen: function () {
try { /*if no native page visibility support found..*/
if (!(this.isSupported())) {
if (this.q.addEventListener) { /*for browsers without
focusin/out support eg. firefox, opera use focus/blur*/
window.addEventListener(this.m[0], this._visible, 1);
window.addEventListener(this.m[1], this._hidden, 1);
} else { /*IE <10s most reliable focus events are
onfocusin/onfocusout*/
if (this.q.attachEvent) {
this.q.attachEvent('onfocusin', this._visible);
this.q.attachEvent('onfocusout', this._hidden);
}
}
} else { /*switch support based on prefix detected earlier*/
this.q.addEventListener(this._getPropName(1), function () {
window.visibly._nativeSwitch.apply(window.visibly, arguments);
}, 1);
}
} catch (e) {}
},
init: function () {
this.getPrefix();
this._listen();
}
};
this.visibly.init();
})();
(function() {
'use strict';
/****************************************************************
* VARIABLES
****************************************************************/
var delay = 200,
OSs = {
android: {
store_prefix: 'https://play.google.com/store/apps/details?id=',
test: /Android/i
},
iOS: {
store_prefix: 'https://itunes.apple.com/en/app/id',
test: /iPhone|iPad|iPod/i
}
};
/****************************************************************
* FUNCTIONS
****************************************************************/
// Get user agent
var getUserAgent = function() {
var k;
for(k in OSs) {
if(navigator.userAgent.match(OSs[k].test)) return k;
}
};
// Get current time in ms
var getTime = function() {
return new Date().getTime();
};
var timeout;
function preventPopup() {
clearTimeout(timeout);
timeout = null;
window.removeEventListener('pagehide', preventPopup);
}
function open(url) {
window.location.href = url;
}
function openApp(vertical,app, url) {
if(vertical=="android"){
location.href = app;
var now = new Date().valueOf();
timeout = setTimeout(function() {
if (new Date().valueOf() - now > delay*2) return;
location.href = url;
}, delay);
}
else{
var iframe = document.createElement('IFRAME');
iframe.setAttribute('style','display:none');
iframe.setAttribute('id', 'appIframe');
document.body.appendChild(iframe);
document.getElementById('appIframe').setAttribute('src', app);
location.href = app;
var now = new Date().valueOf();
timeout = setTimeout(function() {
var list = document.getElementById("appIframe");
list.parentNode.removeChild(list);
if (new Date().valueOf() - now > delay*2) return;
location.href = url;
}, delay);
}
window.addEventListener('pagehide', preventPopup);
}
// Parse a single element
var parseElement = function(el) {
console.log(el);
var clicked, timeout,
OS = getUserAgent(),
href = el.getAttribute('href'),
app = (
el.getAttribute('data-app-' + OS) ||
el.getAttribute('data-app')
),
store = (
el.getAttribute('data-store-' + OS) ||
el.getAttribute('data-store')
);
if(!app) return;
if(!href) el.setAttribute('href', app);
if(location.search.indexOf('webview') > -1){
el.onclick = function(e) {
e.preventDefault();
e.stopImmediatePropagation();
location.href = app;
}
return;
}
else if(OS) {// Hijack click event
el.onclick = function(e) {
e.preventDefault();
e.stopImmediatePropagation();
openApp(OS,app,OSs[OS].store_prefix + store);
};
} else if(!href || href === '#') {
// Apps are presumably not supported
el.style.display = 'none';
}
// Triggered on blur
visibly.onHidden(function() {
if(!clicked || !timeout) return;
// Reset everything
timeout = clearInterval(timeout);
clicked = false;
});
};
/****************************************************************
* INITIALIZE
****************************************************************/
var elements = document.getElementsByTagName('a'),
i = elements.length;
while(i--) parseElement(elements[i]);
})();