Skip to content

Instantly share code, notes, and snippets.

@juanbrujo
Created September 8, 2016 17:34
Show Gist options
  • Select an option

  • Save juanbrujo/70c5ffb6b570903bb4dcf739fdd52a0b to your computer and use it in GitHub Desktop.

Select an option

Save juanbrujo/70c5ffb6b570903bb4dcf739fdd52a0b to your computer and use it in GitHub Desktop.
Smart banner simple implementation
<!--
More Info:https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
CDN: https://cdnjs.com/libraries/jquery.smartbanner
-->
<script type="text/javascript">
var viewPortTagApple = document.createElement('meta');
viewPortTagApple.name = "apple-itunes-app";
viewPortTagApple.content = "app-id=XXXX";
var viewPortTagAndorid = document.createElement('meta');
viewPortTagAndorid.name = "google-play-app";
viewPortTagAndorid.content = "app-id=XXXX";
document.getElementsByTagName('head')[0].appendChild(viewPortTagApple);
document.getElementsByTagName('head')[0].appendChild(viewPortTagAndorid);
</script>
<script src="jquerySmartBanner.js"></script>
<script type="text/javascript">
$(function() {
var android = location.href.match(/#android$/) || navigator.userAgent.match(/Android/i) != null;
var criOS = location.href.match(/#android$/) || navigator.userAgent.match(/criOS/i) != null;
if (android) {
smartBanner();
}else{
if (criOS) {
smartBanner();
}
};
function smartBanner() {
$.smartbanner({
title: 'Company Name',
author: 'Company Name',
icon: '/movil/ShowProperty/CompanyName'/Logo.png',
button: 'Go',
inGooglePlay: 'Google Play',
price: 'Free',
force: android ? 'android' : 'ios',
layer: true,
daysHidden: 0,
daysReminder: 0
});
}
});
</script>
@ludreykimm
Copy link

Delta is undoubtedly one of the most popular Roblox executor for both Android and Windows. Like other Roblox exploits, its developers continuously release new updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment