Advertisement
LukasCCB

html auto check if ssl (https)

Jul 21st, 2016
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. /* <![CDATA[ */
  3.  
  4. (function() {
  5. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  6. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  7. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  8. })();
  9.  
  10. /* ]]> */
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement