Skip to content

iasievents/events.js-for-site-owners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

events.js for site owners

Easily fetch events from IAȘI events platform and display them on your website.

Usage

const events = new Events(args);
events.fetch(args, callback);

Constructor arguments

new Events({

    // Container to render fetched eventsw
    // If missing, events will be rendered in a new <div> element
    container: '#events',
    
    // Fetch all events containing search keyword/phrase
    search: 'keywords',
    
    // Fetch all events published under a given profile
    publisher: 1,
    
    // Fetch all events organized at a given venue
    venue: 'venue'
    
});

Custom callback

events.fetch({}, events => {
    return events.map(i => {
        return `<div><img src="${i.cover}"/><h3><a href="${i.url}">${i.name}</a></h3></div>`;
    }).join('');
});

About

Easily fetch events from IAȘI events platform directly on your website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •