Skip to content

Instantly share code, notes, and snippets.

View mustafa-x's full-sized avatar

Mustafa Kurtuldu mustafa-x

View GitHub Profile
@mustafa-x
mustafa-x / answers.json
Created June 1, 2013 01:13
A simple accordian made using php to load json files. jQuery added for behaviors. > https://github.com/mustafa-x/DT-phpAccordian
{"answers":
{
"0":"<p>The first thing we need is for you to tell us which titles you'd like to rent, otherwise we won't be able to send you anything as we won't know which of our 70,000 titles you want us to send to you.</p><p>The way you do this is simply by adding titles to your list - which is known as the \"My Rental List\". You can add a title to your list using the \"Rent\" or \"Add\" button displayed next to its name wherever you see the title displayed on our website. You can see this button in lots of places on our website after you've registered an account with us. For example it's next to all the titles on our home page after you've logged in, it's in the search results when looking for a title, and it's on the page you see when you've clicked on a title to read more about it.</p><p>Once you have created a list of titles, there is nothing more you need to do, we'll automatically select your first rentals from the list you've created and send them out to you on the next working day. We recommend
@mustafa-x
mustafa-x / behaviours.js
Created May 6, 2012 16:57
Detecting horizontal scrolling and div’s with overflow:auto
window.onresize = function() {
if ( $("div").outerWidth() < $("div").get(0).scrollWidth ) {
console.log("foo bar scrollbar");
} else {
console.log(" no scrolling - YaY ");
}
};
@mustafa-x
mustafa-x / dabblet.css
Created February 8, 2012 14:44
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, yellow, orange, red, #e91660, purple);
min-height: 1px;
}