source: spip-zone/_plugins_/browser_update/inserer_browser_update.php @ 117558

Last change on this file since 117558 was 101084, checked in by associate-it@…, 4 years ago

import initial de la première version du plugin browser-update

File size: 459 bytes
Line 
1<?php
2
3function browser_update_insert_head($texte){
4        $texte .= "\n".'<script>'."\n".'var $buoop = {c:2};'."\n".'function $buo_f(){'."\n".'var e = document.createElement("script");'."\n".'e.src = "//browser-update.org/update.min.js";'."\n".'document.body.appendChild(e);'."\n".'};'."\n".'try {document.addEventListener("DOMContentLoaded", $buo_f,false)}'."\n".'catch(e){window.attachEvent("onload", $buo_f)}'."\n".'</script>'."\n";
5        return $texte;
6}
7
8?>
Note: See TracBrowser for help on using the repository browser.