Skip to content

Instantly share code, notes, and snippets.

View ozknozsrt's full-sized avatar
🚀
Focusing

Özkan ÖZSERT ozknozsrt

🚀
Focusing
View GitHub Profile
@ozknozsrt
ozknozsrt / media-query.css
Created August 13, 2018 11:22 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@ozknozsrt
ozknozsrt / foo.html
Created July 9, 2018 11:56
whatsappsend
<a href="https://api.whatsapp.com/send?phone=whatsappphonenumber&text=urlencodedtext"></a>
@ozknozsrt
ozknozsrt / redirect.cs
Created July 6, 2018 11:07
c# redirect replace
string path = Request.Url.ToString();
string url = path.Replace("http://localhost:50638/", "http://localhost:50638/en/");
Response.Redirect("url");
@ozknozsrt
ozknozsrt / social-popup-share.js
Created June 19, 2018 14:34
social popup share
var myhref = window.location.href,
facebookHref = "https://facebook.com/sharer.php?u=" + myhref,
twitterHref = "https://twitter.com/intent/tweet?url=" + myhref,
shareOptions = 'location=yes,height=500,width=500,scrollbars=yes,status=yes';
$('.facebook-share').click(function() {
window.open(facebookHref, '_blank', shareOptions);
});
$('.twitter-share').click(function() {
window.open(twitterHref, '_blank', shareOptions);
$(".acctrigger").click(function() {
var target = $(this).attr('href');
$('.acc-page').removeClass('active');
$('.acctrigger').removeClass('active');
$(target).addClass('active');
var target = $(this).attr('href');
$(this).addClass('active');
return false;
@ozknozsrt
ozknozsrt / set-cookie-good.php
Created May 5, 2018 23:31 — forked from kopiro/set-cookie-good.php
Set cookie for all pages PHP
@ozknozsrt
ozknozsrt / named-file-input.html
Created March 16, 2018 09:50
File Input Named
<input type="file" id="fileUpload">
$('input[type=file]').change(function () {
console.dir(this.files[0].name)
})
@ozknozsrt
ozknozsrt / index.html
Created March 7, 2018 12:56
Whatsapp Web Send Text From Phone Number
<p><a href="https://web.whatsapp.com/send?text=Merhaba, proje ile alakalı bilgi almak istiyorum. Yardımcı olur musunuz?&amp;phone=905555555555">Whatsapp Mesaj</a></p>
@ozknozsrt
ozknozsrt / index.html
Created March 2, 2018 13:37
dataTable child rows detail info without ajax
<tr data-child-name="test1" data-child-value="10">
<td>ParentRow</td>
<td>No. 1</td>
</tr>
In the click handler (line 50 from the example):
<script>
// Add event listener for opening and closing details
@ozknozsrt
ozknozsrt / a.js
Created February 18, 2018 11:00
short code of smooth anchor scrolling
$(document).on('click', 'a[href^="#"]', function (event) {
event.preventDefault();
$('html, body').animate({
scrollTop: $($.attr(this, 'href')).offset().top
}, 500);
});