1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/static/src/js/app.js

12 lines
364 B
JavaScript
Raw Normal View History

2015-10-19 13:04:49 +01:00
var React = require('react');
var ProjectImages = require('./components/project-images');
2015-11-10 23:24:28 +00:00
window.scrollToElement = function(ident) {
$('html, body').animate({scrollTop: $(ident).offset().top}, 1000);
}
2015-10-19 13:04:49 +01:00
$(window).load(function(){
$(window).trigger('scroll').trigger('resize');
});
React.render(<ProjectImages />, document.getElementById('project-images'));