commit a70d09915feb1ac8d0aa9edba105f9ba1e3fe1d3 Author: M. Gardner Date: Fri Jul 26 21:05:19 2019 +0300 Initial commit diff --git a/add_image.sh b/add_image.sh new file mode 100755 index 0000000..c3183c7 --- /dev/null +++ b/add_image.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +printf -v file "%q" "$1" +printf -v title "%q" "$2" +printf -v hover "%q" "$3" + +mysql -u web -e"SET @file '$file'; SET @title '$title'; SET @hover '$hover';" < add_image.sql \ No newline at end of file diff --git a/add_image.sql b/add_image.sql new file mode 100644 index 0000000..c094985 --- /dev/null +++ b/add_image.sql @@ -0,0 +1,2 @@ +USE web +INSERT INTO comics (file,title,hover) VALUES ('@file','@title','@hover') \ No newline at end of file diff --git a/css/.sass-cache/cafdfd4172af3dd6d97a413ea72e0b8ebae6e661/style.scssc b/css/.sass-cache/cafdfd4172af3dd6d97a413ea72e0b8ebae6e661/style.scssc new file mode 100644 index 0000000..06ca291 Binary files /dev/null and b/css/.sass-cache/cafdfd4172af3dd6d97a413ea72e0b8ebae6e661/style.scssc differ diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..b81432d --- /dev/null +++ b/css/style.css @@ -0,0 +1,18 @@ +tr { + display: flex; + flex-direction: row; + justify-content: space-between; } + +a img { + width: 32px; + transition: all 0.2s; } + a img:hover { + width: 64px; } + +#comic { + margin: 0 auto; } + +.strip { + width: 512px; } + +/*# sourceMappingURL=style.css.map */ diff --git a/css/style.css.map b/css/style.css.map new file mode 100644 index 0000000..08e9397 --- /dev/null +++ b/css/style.css.map @@ -0,0 +1,7 @@ +{ +"version": 3, +"mappings": "AAAA,EAAG;EACC,OAAO,EAAC,IAAI;EACZ,cAAc,EAAE,GAAG;EACnB,eAAe,EAAE,aAAa;;AAI9B,KAAG;EACC,KAAK,EAAC,IAAI;EACV,UAAU,EAAE,QAAQ;EACpB,WAAO;IACH,KAAK,EAAE,IAAI;;AAIvB,MAAO;EACH,MAAM,EAAE,MAAM;;AAGlB,MAAO;EACH,KAAK,EAAC,KAAK", +"sources": ["style.scss"], +"names": [], +"file": "style.css" +} diff --git a/css/style.scss b/css/style.scss new file mode 100644 index 0000000..d11edf9 --- /dev/null +++ b/css/style.scss @@ -0,0 +1,22 @@ +tr { + display:flex; + flex-direction: row; + justify-content: space-between; +} + +a{ + img{ + width:32px; + transition: all 0.2s; + &:hover{ + width: 64px; + } + } +} +#comic { + margin: 0 auto; +} + +.strip { + width:512px; +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..674a56b --- /dev/null +++ b/index.php @@ -0,0 +1,27 @@ + + + + + +<?php $comic["title"]?> + + + + + + + + + + + + +
+ src= />
>>
+ \ No newline at end of file diff --git a/setup.php b/setup.php new file mode 100644 index 0000000..f9235ac --- /dev/null +++ b/setup.php @@ -0,0 +1,13 @@ +connect_errno){ + die("connection error: ".$msql->connect_error); +} +$string="SELECT id,file,title,hover FROM comics ORDER BY CASE WHEN (id='$id') THEN 0 ELSE 1 END, id DESC"; +$qry=$msql->query($string) or die($msql->error); +$comic=$qry->fetch_assoc(); +?> \ No newline at end of file