This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function handleTouch (evt) { | |
var touchX, touchY, xOffset, yOffset; | |
if (window.navigator.msPointerEnabled) { | |
var bodyEl = document.getElementByTagName('body')[0]; | |
bodyEl.style.msTouchAction = 'none'; | |
bodyEl.style.touchAction = 'none'; | |
} | |
// Normalize your touch events | |
touchX = evt.originalEvent.pageX || evt.originalEvent.changedTouches[0].screenX; | |
touchY = evt.originalEvent.pageY || evt.originalEvent.changedTouches[0].screenY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% -*- coding: utf-8 -*- | |
\documentclass[a4paper]{article} | |
\usepackage[slovene]{babel} % šumniki s \v{c} | |
\usepackage[utf8]{inputenc} % šumniki s č | |
\usepackage{mathtools} % za matematiko | |
\usepackage{amssymb} % za dodatne simbole, \mathbb{F, R, N..} | |
\title{My Title} | |
\author{My Name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="obcina"> | |
<option> | |
Izberi | |
</option> | |
<option value="192"> | |
Ajdovščina | |
</option> | |
<option value="205"> | |
Ankaran | |
</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="regija"> | |
<option> | |
Izberi | |
</option> | |
<option value="gorenjska"> | |
Gorenjska regija | |
</option> | |
<option value="goriska"> | |
Goriška regija | |
</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="mesto"> | |
<option> | |
Izberi | |
</option> | |
<option value="Adlešiči"> | |
Adlešiči | |
</option> | |
<option value="Ajdovščina"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] !== 'on') { | |
if(!headers_sent()) { | |
header("Status: 301 Moved Permanently"); | |
header(sprintf( | |
'Location: https://%s%s', | |
$_SERVER['HTTP_HOST'], | |
$_SERVER['REQUEST_URI'] | |
)); | |
exit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myControl = ControlName; | |
var a = new DoubleAnimation | |
{ | |
From = 1.0, | |
To = 0.0, | |
FillBehavior = FillBehavior.Stop, | |
BeginTime = TimeSpan.FromSeconds(2), | |
Duration = new Duration(TimeSpan.FromSeconds(0.5)) | |
}; | |
var storyboard = new Storyboard(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Thread(delegate() | |
{ | |
Dispatcher.BeginInvoke(new Action(delegate() | |
{ | |
// Do something in the "main" thread (the thread calling the new thread). | |
})); | |
// Do whatever you want. | |
Thread.Sleep(3000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.Reflection.MethodBase.GetCurrentMethod().Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_GET['logout'])) { | |
session_start(); | |
session_unset(); | |
session_destroy(); | |
session_write_close(); | |
setcookie(session_name(),'',0,'/'); | |
session_regenerate_id(true); | |
header('location: ./'); | |
} |
OlderNewer