Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(preg_match('#ios|apple#i', $_SERVER['HTTP_USER_AGENT'])){
- echo'<script src="/js/cordova/ios/cordova.js"></script>';
- }
- // if android
- else{
- echo'<script src="/js/cordova/android/cordova.js"></script>';
- }
- ?>
- <script src="/js/cordova/SocialSharing.js"></script>
- <script src="/js/cordova/InAppBrowser.js"></script>
- <script src="/js/jquery-1.11.2.min.js"></script>
- <script src="/js/custom.js?v=<? echo numcachestatics; ?>"></script>
- <script type="text/javascript">
- $(document).ready( function()
- {
- $(document).on('click', '.itempub', function(e){
- e.preventDefault();
- var $this = $(this);
- var target = $this.data('inAppBrowser') || '_system';
- window.open($this.attr('href'), target);
- });
- $(document).on('click', 'a[href^=http], a[href^=https]', function(e){
- e.preventDefault();
- var $this = $(this);
- var target = $this.data('inAppBrowser') || '_system';
- window.open($this.attr('href'), target);
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement