Skip to content

Commit

Permalink
Change Design
Browse files Browse the repository at this point in the history
  • Loading branch information
ANNotunzdY committed May 19, 2018
1 parent 0acd14c commit 024d132
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ xhr.send(null);
## More info

http://qiita.com/ANNotunzdY/items/17805a4d7a2d797822ea


## SVG Design

https://shields.io
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
}

if (preg_match('/^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/', $ip)) {
echo '<div style="background: linear-gradient(#FF0000, #FF99CC); padding: 5px; border: 1px solid #333333; border-radius: 3px; font-size: 13px; width: 50px; text-align: center; font-family: sans-serif;">via IPv4</div>';
echo '<div><img src="https://viav6.kibousoft.co.jp/via-IPv4-red.svg"></div>';
} else {
echo '<div style="background: linear-gradient(#0000FF, #99CCFF); padding: 5px; border: 1px solid #333333; border-radius: 3px; font-size: 13px; width: 50px; text-align: center; font-family: sans-serif;">via IPv6</div>';
echo '<div><img src="https://viav6.kibousoft.co.jp/via-IPv6-green.svg"></div>';
}
?>
</a>
1 change: 1 addition & 0 deletions via-IPv4-red.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions via-IPv6-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 024d132

Please sign in to comment.