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
@@ -8,7 +8,9 @@ var pageTitle = ""; | |
var isOnList = false; | |
var itemStatus = 0; | |
-var baseUrl="http://sozluk.sourtimes.org/"; | |
+//var baseUrl="http://sozluk.sourtimes.org/"; //good old days | |
+ | |
+var baseUrl="http://www.eksisozluk.com/"; | |
var sourPHPUrl=apiURL+ userName + "/" + userApiKey +"/"; | |
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
class Service_Exception | |
{ | |
private $errors; | |
public put($errorCode, $errrorMessage="Undefined" ) | |
{ | |
array_push( | |
} | |
public throwIfAnyException() |
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
$(window).scroll(function () { | |
offsetTop = $("select").offset().top; | |
scrollTop = $(window).scrollTop(); | |
selectsYCoordinate = offsetTop - scrollTop; | |
console.log(selectsYCoordinate); | |
}); |
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 | |
$resimler3=mysql_query("select * from tblflashvitrin order by id DESC"); | |
$sonuc = ""; | |
while($resimler4=mysql_fetch_array($resimler3)){ | |
$sonuc .= '{"id":"slide-img-'.$resimler4['id'].',"client":"'.$resimler4['baslik'].'","desc":"'.$resimler4['icerik'].'"} ,'; | |
} | |
$sonuc = rtrim($sonuc,","); | |
echo $sonuc; | |
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
<style type="text/css"> | |
ul, li { | |
list-style-type:none; | |
} | |
#container { | |
width:400px; | |
background-color:#BBB; | |
overflow:auto; | |
} |
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 | |
$metin = "<div class=\"Manset\"> bunu sil </div> <div> deneme </div>"; | |
$sonuc = preg_replace("/<div class=\"Manset\">(.*?)<\/div>/is","", $metin); | |
var_dump($sonuc); |
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
:$-1,$s/\n)$/) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>jQuery.animate 10000px bug</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
<script> | |
/** | |
* I'm trying to animate and change margin-left property of an element | |
* It works fine under -10000px but it doesnt work >= -10000 |
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 player = document.getElementById('movie_player'); | |
setInterval(function(){ | |
if( player.getPlayerState() == 0){ | |
player.seekTo(0); | |
} | |
}, 1000); |
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 containerSpan=document.createElement('span'); | |
var loopButtonStyle = "<style>#loopTubeButton span {color:red} #loopTubeButton span.selected {color:blue}</style>"; | |
var loopButton = '<button id="loopTubeButton" class="yt-uix-tooltip-reverse yt-uix-button yt-uix-tooltip" type="button" title="Loop this video"> <span id="loopTubeSpan">Looxp</span></button>'; | |
containerSpan.innerHTML = loopButtonStyle + loopButton; | |
document.getElementById("watch-actions-right").appendChild(containerSpan); |