diff --git a/murom_2.0.1.html b/murom_2.0.1.html new file mode 120000 index 0000000..91fe0a8 --- /dev/null +++ b/murom_2.0.1.html @@ -0,0 +1 @@ +муром_2.0.1.html \ No newline at end of file diff --git a/модули/муром.база_1.0.0.js b/модули/муром.база_1.0.0.js deleted file mode 100644 index d554743..0000000 --- a/модули/муром.база_1.0.0.js +++ /dev/null @@ -1,166 +0,0 @@ -/* - * - * Скачиваемый файл / Downloaded file - * - */ - -муром.файл = {}; -муром.файл.начало = -` - - - - -
- - - -`; - -/* - * - * UUID - * - */ - -// Create GUID / UUID in JavaScript? -// https://stackoverflow.com/a/2117523 -муром.uuid = function() -{ - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace( - /[xy]/g, - function(c) - { - var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); - return v.toString(16); - } - ); -}; - -/* - * - * Уведомитель / Reporter - * - */ - -// ReporterSubscription class. -function ReporterSubscription(id, callback, reporter) -{ - this.id = id; - this.callback = callback; - this.reporter = reporter; -} - -// Reporter class. -function Reporter(name) -{ - this.name = - (typeof name !== "undefined") ? - name : - ""; - this.subscriptions = []; -} -Reporter.prototype.report = function() -{ - for (var id in this.subscriptions) - { - var subscription = this.subscriptions[id]; - subscription.callback(); - } -} -Reporter.prototype.subscribe = function(callback) -{ - var id = murom.uuid(); - var subscription = new ReporterSubscription(id, callback, this); - this.subscriptions.push(subscription); - return subscription; -} -Reporter.prototype.subscribeMany = function(funcs) -{ - for (var i = 0; i < funcs.length; ++i) - { - var func = funcs[i]; - this.subscribe(func); - } -} - -var Уведомитель = Reporter; -Reporter.prototype.уведомить = function() -{ - this.report(); -}; -Reporter.prototype.подписать = function(функция) -{ - this.subscribe(функция); -}; -Reporter.prototype.подписатьМного = function(funcs) -{ - this.subscribeMany(funcs); -}; - -/* - * - * Пуск / Start - * - */ - -муром.пуск = new Уведомитель(); -// Can also be accessed as 'murom.run'. -Object.defineProperty(murom, "run", { - get: function() - { - return муром.пуск; - } -}); -murom.start = function() -{ - муром.пуск.уведомить(); -}; - -/* - * - * Левая и правая области / Left and right regions - * - */ - -муром.создатьЛевуюПравуюОбласти = function() -{ - // Левая область. - var ло = document.createElement("div"); - ло.id="левая-область"; - ло.style.cssText = - "position: fixed; left: 0; top: 0; bottom: 0; width: 50%;"; - document.body.appendChild(ло); - - // Правая область. - var по = document.createElement("div"); - по.id="правая-область"; - по.style.cssText = - "position: fixed; right: 0; top: 0; bottom: 0; width: 50%;"; - document.body.appendChild(по); - - return [ло, по]; -}; diff --git a/модули/муром.загрузка_1.0.0.js b/модули/муром.загрузка_1.0.0.js deleted file mode 100644 index 3b90bfd..0000000 --- a/модули/муром.загрузка_1.0.0.js +++ /dev/null @@ -1,122 +0,0 @@ -/* - * NOTE Only ASCII is allowed in this loading module - * NOTE because it's deciphered with btoa() call, - * NOTE which can't handle Unicode. - * NOTE However, murom.atob/btoa functions (defined here) - * NOTE work fine with Unicode, so you are free - * NOTE to use Unicode in other modules - */ - -murom.installLocalForage = function() -{ -/* - localForage -- Offline Storage, Improved - Version 1.7.3 - https://localforage.github.io/localForage - (c) 2013-2017 Mozilla, Apache License 2.0 -*/ -!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.localforage=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g