Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View valeriu's full-sized avatar
🎯
Focusing

Valeriu Tihai valeriu

🎯
Focusing
View GitHub Profile
@valeriu
valeriu / style.css
Created March 14, 2012 01:25 — forked from luetkemj/style.css
WP-CSS: Wordpress classes
/* =============================================================================
WordPress WYSIWYG Editor Styles
========================================================================== */
.entry-content img {
margin: 0 0 1.5em 0;
max-width: 100%;
height: auto;
}
.alignleft, img.alignleft {
@valeriu
valeriu / gist:2033212
Created March 14, 2012 01:26 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@valeriu
valeriu / gist:4278968
Created December 13, 2012 19:20
Exercice 07-3 b
<html>
<head>
<title>Exercice 07-3 b</title>
</head>
<body>
<script language="JavaScript" type="text/JavaScript">
const CODE = "secret01";
const PASSE = "pizza";
@valeriu
valeriu / gist:4346942
Created December 20, 2012 17:25
Exercice 07 - Numéro 05 (Yan)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Exercice 07 - Numéro 05</title>
<meta />
</head>
<body>
<script>
@valeriu
valeriu / show-hide-div.html
Last active December 11, 2015 11:39
Show hide div on click, javascript
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test js</title>
<style>
#p2{ display:none;}
</style>
<script>
function clik()
@valeriu
valeriu / 01.html
Last active December 11, 2015 21:58
Ex 15
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>1</title>
</head>
<body>
<script language="JavaScript" type="text/JavaScript">
var couleurs, pairs, impairs;
couleurs = new Array ("cyan", "magenta", "jaune", "noir");
@valeriu
valeriu / 27-05.html
Last active December 12, 2015 08:38
Exercice 27 (5)
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>05</title>
</head>
<body>
<script type="text/javascript">
var suma = 0;
var timpul;
@valeriu
valeriu / ex-finale.html
Last active December 12, 2015 22:09
Kasyan, Flora - Epreuve finale
<html>
<head>
<!-- Nom de l'étudiant : Kasyan, Flora -->
<title>&Eacute;preuve finale - Olympiades</title>
<script language="JavaScript" type="text/javascript">
function afficherMessages () {
// declaration des variables;
@valeriu
valeriu / nav-wp-add-css-class-to-body.html
Created February 19, 2013 04:14
Add css class to body if exist specific class.
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<style type="text/css">
.important {background-color: #f3f3f3;}
.nui {background-color: red;}
</style>
</head>
<body class="aiciDejaExistaClasa">
@valeriu
valeriu / lastIndexOf.html
Last active December 14, 2015 21:39
Reports the zero-based index position of the last occurrence of a specified Unicode character or string within this instance. The method returns -1 if the character or string is not found in this instance.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>lastIndexOf</title>
</head>
<body>
<script type="text/javascript">
var str = "abcdefabcdef"