tiny-slitaz diff index.php @ rev 5

refresh
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 07 23:37:02 2015 +0200 (2015-10-07)
parents d203aafad141
children ac214416e736
line diff
     1.1 --- a/index.php	Tue Aug 21 11:16:18 2012 +0200
     1.2 +++ b/index.php	Wed Oct 07 23:37:02 2015 +0200
     1.3 @@ -46,7 +46,7 @@
     1.4  <!-- Content -->
     1.5  <div id="content">
     1.6  
     1.7 -<?php if (isset($error) && $error != "") echo "
     1.8 +<?php if (!empty($error)) echo "
     1.9  <div class=\"nav_box\">
    1.10  	<h4>Error :</h4>
    1.11  	<p>$error</p>
    1.12 @@ -71,7 +71,7 @@
    1.13  	Useful software, expansible, easy to configure, runs fully in RAM, 
    1.14  	simple, light and fast for minimum hardware resources: ie fits on
    1.15  	one floppy disk (IDE disk optional), runs on a 386sx processor and
    1.16 -	needs as little memory as possible (currently 8 MB with a 2.6.34 
    1.17 +	needs as little memory as possible (currently 4 MB with a 2.6.14 
    1.18  	kernel).
    1.19  	<a href="http://doc.slitaz.org/en:guides:pxe#why-use-pxe-the-vnc-example">
    1.20  	Example</a>
    1.21 @@ -98,11 +98,9 @@
    1.22  	The initramfs is based on <a href="http://uclibc.org/"
    1.23  	title="Instead of glibc">uClibc</a> and 
    1.24  	busybox with its <a href="dist/busybox.config.txt">config</a>
    1.25 -	files and the packages 
    1.26 -	<a href="http://pkgs.slitaz.org/search.cgi?filelist=slitaz-base-files">
    1.27 -	slitaz-base-files</a> and 
    1.28 -	<a href="http://pkgs.slitaz.org/search.cgi?filelist=slitaz-boot-scripts">
    1.29 -	slitaz-boot-scripts</a>.
    1.30 +	files and this
    1.31 +	<a href="http://hg.slitaz.org/wok-tiny/file/tip/base-tiny/stuff">
    1.32 +	filesystem tree</a>.
    1.33  </p>
    1.34  </div>
    1.35  
    1.36 @@ -127,6 +125,27 @@
    1.37  		<a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
    1.38  		<a href="http://flattr.com/profile/slitaz">Flattr</a>
    1.39  	</p>
    1.40 +<p>
    1.41 +	<script type="text/javascript">
    1.42 +	function QRCodePNG(str, obj) {
    1.43 +		try {
    1.44 +			obj.height = obj.width += 200;
    1.45 +			return QRCode.generatePNG(str, {ecclevel: 'H'});
    1.46 +		}
    1.47 +		catch (any) {
    1.48 +			var element = document.createElement("script");
    1.49 +			element.src = "/static/qrcode.js";
    1.50 +			element.type ="text/javascript"; 
    1.51 +			element.onload = function() {
    1.52 +				obj.src = QRCode.generatePNG(str, {ecclevel: 'H'});
    1.53 +			};
    1.54 +			document.body.appendChild(element);
    1.55 +		}
    1.56 +	}
    1.57 +	</script>
    1.58 +	<img src="/static/qr.png" alt="#" onmouseover="this.title = location.href"
    1.59 +	 onclick="this.src = QRCodePNG(location.href, this)" />
    1.60 +</p>
    1.61  </div>
    1.62  
    1.63  </body>