1.0.2 • Published 6 years ago

jquery-rndm-full v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Jquery Photo Random

Query pugin photo Random

Installation

npm install --save jquery-rndm-full
You need to load jquery first
<script src="/mode_module/jquery/dist/jquery.js"></script>
<script src="/mode_module/jquery-rndm-full/src/index.js"></script>

Before using pluging, you need to register as develop then you must put the CLIENT_ID to be able to get photos from unisplash API.

window.rndmFull.setup(clientId);

How it work?

<div id="bg-random">
$(document).ready(function(){
window.rndmFull.setup(clientId);
var options = {
minHeight: '700px', //by default is 800px
backgroundSize: 'contain', //by default is cover
backgroundPosition: 'top center', //by default is center
backgroundColor: 'red', //black
backgroundImage: 'path/img.jpg', //in the case that the end point responses with an error
}
$('bg-random').rndmFull(options);
});