Skip to content

Instantly share code, notes, and snippets.

Avatar

Aleksey Devksh AlekseyDevksh

  • Warsaw, Poland
View GitHub Profile
View slickSliderLeftLine.css
.slick-slide { overflow: hidden; padding-right: 1px; }
View iphoneStyles.css
/* Prevent font scaling in landscape while allowing user zoom */
-webkit-text-size-adjust: 100%;
/* Remove tap highlight */
input,
textarea,
button,
select,
label,
a {
View modalSafari.js
var scrollPos = 0;
$('.modal')
.on('show.bs.modal', function (){
scrollPos = $('body').scrollTop();
$('body').css({
overflow: 'hidden',
position: 'fixed',
top : -scrollPos
});
View CallChildMethodFromParent.jsx
class Parent extends Component {
render() {
return (
<div>
<Child setClick={click => this.clickChild = click}/>
<button onClick={() => this.clickChild()}>Click</button>
</div>
);
}
}