Skip to content

Instantly share code, notes, and snippets.

View michelrossier's full-sized avatar

Michel Rossier michelrossier

  • Bern
View GitHub Profile
@michelrossier
michelrossier / 0_reuse_code.js
Created September 23, 2015 22:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# .htaccess or Apache vhost
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
(function () {
if (!Worker) //Detect IE
document.location = "http://www.whatbrowser.org/ru/browser/";
})();
<p></p>
/* Formular */
#suchformular {
width: 200px;
float: left;
margin-bottom: 0;
position: relative;
}
.srksuche, .suche {
<div class="suche">
<form action="de/home/suchresultate/" method="get" id="suchformular">
<input type="text" name="tx_indexedsearch[sword]" id="suchfeld"> <input type="submit" value="" class="absenden">
</form>
</div>
<ul>
<li><a href="#">Punkt 1</a></li>
<li><a href="#">Punkt 2</a></li>
<li><a href="#">Punkt 3</a></li>
<li><a href="#">Punkt 4</a></li>
</ul>