The core for a modular plugin system for InstaSynch. Simply install other plugins through the plugin manager (Plugins button) at the top of the page or from greasyfork.
Everything is based on events that plugins can listen to for the information they need.
Plugins should run at document-start so they can put themself into the
window.plugins object before the core loads.
When the document has loaded the core will automatically look and bind some functions in the plugins
Events can be bound or fired using the
events.on(this, 'Event1,Event2', callbackFunction, true/false)
events.once(this, 'Event1,Event2', callbackFunction, true/false)
events.fire('EventName', [arg1, arg2], true/false)
Loading priorities soon
Public variables can be accessed through
core.listeners all the listeners bound in
core.connected are we connected to the room?
The core will look for commands in
See InstaSynchP Commands
The core will look for settings in
See InstaSynchP Settings
The core will look for styles in
See InstaSynchP CSSLoader
The MIT License (MIT)
<InstaSynch - Watch Videos with friends.>
Copyright (c) 2014 InstaSynch
<Bibbytube - Modified InstaSynch client code>
Copyright (C) 2014 Zod-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.