This file contains hidden or 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 Strip_text($data,$size,$elipse = true){ | |
$data = strip_tags($data); | |
if(mb_strlen($data, 'utf-8') > $size){ | |
$result = mb_substr($data,0,mb_strpos($data,' ',$size,'utf-8'),'utf-8'); | |
if(mb_strlen($result, 'utf-8') <= 0){ | |
$result = mb_substr($data,0,$size,'utf-8'); | |
$result = mb_substr($result, 0, mb_strrpos($result, ' ','utf-8'),'utf-8');; | |
} | |
if($elipse) { | |
$result .= "..."; |
This file contains hidden or 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
Abilene, Texas | |
Akron, Ohio | |
Albuquerque, New Mexico | |
Alexandria, Virginia | |
Allentown, Pennsylvania | |
Amarillo, Texas | |
Anaheim, California | |
Anchorage, Alaska | |
Ann Arbor, Michigan | |
Antioch, California |
This file contains hidden or 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
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
text-rendering: optimizeLegibility; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Window</title> | |
</head> | |
<body> | |
<form action=""> | |
<label for="">Müşteri ID <a href="#" id="click">[Gözat]</a></label> | |
<input type="text" name="musteri_id" id="musteri" value="" placeholder="Müşteri ID bilgisi"> |
This file contains hidden or 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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
media only screen | |
and (min-width : 321px) { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>KML EXAMPLE</title> | |
<style> | |
#map_canvas { | |
width: 500px; | |
height: 400px; | |
} |
This file contains hidden or 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 Slug($text) | |
{ | |
// replace non letter or digits by - | |
$text = preg_replace('~[^\\pL\d]+~u', '-', $text); | |
// trim | |
$text = trim($text, '-'); | |
// transliterate | |
$text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Parallax</title> | |
<link rel="stylesheet" href="style.css"> | |
<style> | |
div.space { | |
min-height: 1000px; | |
} |
This file contains hidden or 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 mail_utf8($to, $subject = '(No subject)', $message = '', $header = '') { | |
$header_ = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/plain; charset=UTF-8' . "\r\n"; | |
mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, $header_ . $header); | |
} |
This file contains hidden or 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
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript" src="jquery.gmap.js"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
var myLatlng = new google.maps.LatLng(41.010961, 28.900224); | |
var myLatlng2 = new google.maps.LatLng(39.872069, 32.861536); | |
var myLatlng3 = new google.maps.LatLng(39.903592, 41.271166); |