-
На iOS устройствах числовые значения подчёркиваются синим. Эта проблема возникает из-за того, что iOS устройства по умолчанию считают все числа похожие на телефонные номера - телефонными номерами. Решается добавлением
<meta name="format-detection" content="telephone=no" />
Тоже самое касается адреса:<meta name="format-detection" content="address=no" />
-
Пользователь может уменьшать и увеличивать приложение. Решается добавляением тега
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
-
Ссылки нажимаются с задержкой (примерно 300ms). Решается подпиской на событие touchstart и принудительной инициализацией события click после него. Если проблема всё равно возникает - ничего не поделать, надо облегчать dom. Как вариант - можно использовать библиотеку, посоветанную @adubovsky ниже в комментариях: https://gist.github.com/SerafimArts/de9900f99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Вменяемый код | |
* | |
* Функция предоставляет вменяемый и расшираемый интерфейс | |
* для работы с требуемой функцией. | |
* | |
* Плюс такого подхода в чистоте кода и возможности | |
* для будущей поддержки без извращений (например | |
* логгирование, всякие другие плюшки, в том числе наследоваться). | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Это феерическое безумие и полный разрыв | |
* мозга, по-этому я откомментирую ключевые моменты. | |
* | |
* Алгоритм фактически в лоб, просто перебор | |
* всех элементов, мозги и так плавятся =)))) | |
* | |
* Пример: | |
* console.log(theMadness([1, 4, 6, 98, 3, 2, 7, 8, 90, 12, 8])); | |
* Возвращает массив комбинаций элементов, где каждый элемент бредставлен объектом |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Зависимости: | |
* - Sabre: https://github.com/fruux/sabre-dav | |
* - Carbon: https://github.com/briannesbitt/Carbon | |
* | |
* Использование: | |
* $ya = new \Ya\Disk(base64_encode(LOGIN . ':' . PASSWORD)); | |
* $wdc = $ya->getDisk(); | |
* print_r($wdc->getDirectory('/')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\support\lib; | |
class Rect | |
{ | |
protected $left; | |
protected $top; | |
protected $width; | |
protected $height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// by Erik Wrenholt | |
import java.util.*; | |
class Mandelbrot | |
{ | |
static int BAILOUT = 16; | |
static int MAX_ITERATIONS = 1000; | |
private static int iterate(float x, float y) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Grid System Core | |
* Licensed under GPL and MIT. | |
* | |
* @version 1.0 | |
* @author Nesmeyanov Kirill aka Serafim | |
*/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
// Babel (ES6, ES7, Flow, etc...) | |
"babel-core": "5.8.*", | |
"gulp-babel": "5.2.*", | |
// CoffeeScript | |
"gulp-coffee": "^2.3.1", | |
// Sass and Scss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ObservablePrimitive instance | |
*/ | |
class ObservablePrimitive { | |
/** | |
* @constructor | |
* @param value | |
*/ | |
constructor(value = null) { | |
this.events = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vector2 from "/Core/Math/Vector2"; | |
import Rotation from "/Core/Math/Rotation"; | |
import {AClass, AProperty} from "/Core/Annotations/Meta"; | |
@AClass('Basic Actor') | |
export default class Actor { | |
/** | |
* @type {boolean} | |
*/ |
OlderNewer