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 / 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 / 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 / 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 / set-cookie-good.php
Created May 5, 2018 23:31 — forked from kopiro/set-cookie-good.php
Set cookie for all pages PHP
$(".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 / 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);
@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 / foo.html
Created July 9, 2018 11:56
whatsappsend
<a href="https://api.whatsapp.com/send?phone=whatsappphonenumber&text=urlencodedtext"></a>
@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 / front-end-blogs.md
Created August 28, 2018 07:53 — forked from zamozniewicz/front-end-blogs.md
Front-end blogs worth reading

##Front-end blogs worth reading##

Even though for the last few years blogs have been losing popularity to Twitter, Facebook and Google Plus and so on, they're still not dead and have not been replaced with other media.

###Articles, showcases, resources###

  • A List Apart - articles design, development, and web standards
  • DailyJS - news, tips, examples and reviews of a variety of JavaScript frameworks and modules.
  • Mozilla Hacks - one of key resources for people developing for the Open Web