Kaynağa Gözat

move CSS for www example to a separate file; table is no longer inside <pre>

tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 yıl önce
ebeveyn
işleme
2a917dc38a
2 değiştirilmiş dosya ile 33 ekleme ve 21 silme
  1. +20
    -0
      caca-php/examples/www/caca-php.css
  2. +13
    -21
      caca-php/examples/www/cacainfo.php

+ 20
- 0
caca-php/examples/www/caca-php.css Dosyayı Görüntüle

@@ -0,0 +1,20 @@
/*
* caca-php.css sample stylesheet for libcaca php binding
* Copyright (c) 2008 Benjamin C. Wiley Sittler <bsittler@gmail.com>
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/

table, table tr
{
display: block;
}
table td
{
display: inline;
padding: 0px;
}

+ 13
- 21
caca-php/examples/www/cacainfo.php Dosyayı Görüntüle

@@ -1,23 +1,3 @@
<html>
<head>
<title>sample program for libcaca php binding</title>
<style type="text/css">
<!--
table, tr
{
display: block;
}
td
{
display: inline;
padding: 0px;
}
-->
</style>
<basefont face="Monaco, Liberation Mono, Courier New, monospace" />
</head>
<body text="white" bgcolor="black">
<pre>
<?php
/*
* cacainfo.php sample program for libcaca php binding
@@ -29,7 +9,15 @@ td
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>sample program for libcaca php binding</title>
<link rel="StyleSheet" href="caca-php.css" >
</head>
<body text="white" bgcolor="black">
<?php

//--- Just for fun ---//

@@ -67,6 +55,10 @@ EOT;

just_for_fun();

?>
<pre>
<?php

//--- Show caca's information ---//

echo "libcaca version: ".caca_get_version()."\n\n";


Yükleniyor…
İptal
Kaydet