Skip to content

Instantly share code, notes, and snippets.

View muzafferkoluman's full-sized avatar

Muzaffer Koluman muzafferkoluman

View GitHub Profile
style="width: 100%;height: 100%;margin: 0;padding: 0;display: table-cell;vertical-align: middle;text-align: center"
@muzafferkoluman
muzafferkoluman / @media css
Created June 29, 2017 12:24
Hep unuttuğum :)
@media screen and
(min-width:500px) and
(max-width:600px)
{
.logo{width:25px;
}
}
@muzafferkoluman
muzafferkoluman / Js ile Ezberler
Created June 29, 2017 14:37
parentlerle istenilene doğru ilerlemek
<div id="div1" style="background-color: burlywood">
<p>Lorem ipsum dolor sit amet, nde voluptatem voluptates.</p>
<p>Lorem ipsum dolor sit amet, s.</p>
<p>Lorem ipsum dolor sit amet,rehenderit.</p>
<p>Lorem ipsum dolor sit amet,rehenderit.</p>
</div>
<button onclick="tikla()">Tikla</button>
<script>
function tikla() {
@muzafferkoluman
muzafferkoluman / Jquery Mantığı
Created June 30, 2017 15:29
function her seferinde açmak gerek
$(function () {
$("h3#name").hide();
});
$(function () {
$("#button").click(function () {
$("#name").show();
})
});
@muzafferkoluman
muzafferkoluman / include
Created July 27, 2017 07:59
Document Root
include($_SERVER["DOCUMENT_ROOT"] . "/pdo/PDO.class.php");
header('Content-Encoding: UTF-8');
header("Content-Type: application/xls");
header( "Content-disposition: attachment; filename=".$filename."");
header("Pragma: no-cache");
header("Expires: 0");
header('Content-Description: File Transfer');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
@muzafferkoluman
muzafferkoluman / Kontrol
Created August 16, 2017 12:45
Radio onclick status
$('input[name=fikri]:checked').val()
<input name="fikri" id="fikri-var" class="fikri-showvar" type="radio" value=" VAR " >
@muzafferkoluman
muzafferkoluman / email kontrol
Created August 16, 2017 12:45
email validator
$.validator.addMethod("email" , function(v) { return /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(v); })
@muzafferkoluman
muzafferkoluman / telefon kontrol
Last active August 29, 2017 08:03
getElementById('tel') masked
<input id="tel" class="form-control form-control-style" type="tel" name="phone">
<script type="text/javascript">
window.onload = function() {
MaskedInput({
elm: document.getElementById('tel'), // select only by id
format: '0 (___) ___-__-__',
separator: '0 ()-'
});
@muzafferkoluman
muzafferkoluman / jquery (this) hover change
Last active August 25, 2017 10:28
Jquery üzerine gelince change
$(function() {
$("#enlogohover").on({
"mouseover" : function() {
this.src = '/images/en.png';
},
"mouseout" : function() {
this.src='/images/en-white.png';
}
});
$("#trlogohover").on({