dj-raphael / context2 Goto Github PK
View Code? Open in Web Editor NEWExternal comments for unregistered users for websites.
Home Page: http://context2.com
External comments for unregistered users for websites.
Home Page: http://context2.com
Адаптировать скрипт App/mainEmbedded.js для мобильных экранов
На десктопах скрипт должен отрабатывать также как и сейчас, только доработать инициализацию и позиционирование.
На мобильных показывать уменьшенный вариант ярлыка. см скриншоты
При нажатии на ярлык, создать невидимый iframe, инициировать его загрузку. инициировать css анимацию разворачивания белого прямоугольника из ярлыка. по окончании анимации разворачивать панель на весь экран, отключить скроллинг основного окна. изменение размера панели не нужно. сам ярлык скрыть, оставить только iframe развернутый на всё окно.
написать обработчик сообщения ожидающее собщения от iframe о том что надо закрыть панель.
вариант подключения
<script>
function initContext2() {
var options = {
language: "ru",
position: "top|bottom|middle",
marginTop: "13px",
marginBottom: "13em",
content: "Comments",
mobilePosition: "top|bottom|middle",
mobileMarginTop: "13pt",
mobileMarginBottom: "13%",
mobileContent: "",
}
return options;
}
</script>
<script src="http://context2.com/App/mainEmbedded.js">
Переписать основу приложения
изменить архитектуру с Angular+RequreJs на чисто Angular.
избавится от RequreJs и jQuery
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.