This file contains hidden or 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
| <template> | |
| <div class="col-xs-12" style="padding:0;"> | |
| <div class="panel panel-default" style="margin:0;"> | |
| <div class="panel-body" style="padding:0;"> | |
| <div v-if="maps.length" :style="{height: height + 'px'}" id="map"></div> | |
| <h3 v-else class="text-center">Нет точек</h3> | |
| </div> | |
| </div> | |
| </div> | |
| </template> |
This file contains hidden or 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
| CREATE DEFINER=`mysql`@`%` PROCEDURE `test`() | |
| LANGUAGE SQL | |
| NOT DETERMINISTIC | |
| CONTAINS SQL | |
| SQL SECURITY DEFINER | |
| COMMENT '' | |
| BEGIN | |
| -- удалим клон если он есть | |
| DROP TABLE IF EXISTS `clone_data`; | |
| -- склонируем таблицу что бы оставить в целостности основную таблицу |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Angular HTML5 Preview, Crop And Upload</title> | |
| <style> | |
| body { | |
| padding: 50px; | |
| font: 16px Helvetica; | |
| } |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Autocomplete Search With Semantic UI</title> | |
| <link rel="stylesheet" href="semantic/dist/semantic.css"> | |
| </head> | |
| <body> | |
This file contains hidden or 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
| <?=HtmlPurifier::process(Marcdown::process([attribute],'gfm'))?> |
This file contains hidden or 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
| <label for="">Rubric</label> | |
| <select name="category_id" id="category_id" class="ui dropdown"> | |
| <option class="item" value="" disabled selected="">Выберите категорию...</option> | |
| @foreach($categories as $item) | |
| @if($item->children->count() > 0) | |
| <option class="item select-option-label" value="{{$item->id}}">{{ $item->name }}</option> | |
| @foreach($item->children as $submenu) | |
| <option class="item" value="{{$submenu->id}}">- {{ $submenu->name }}</option> | |
| @endforeach | |
| @else |
This file contains hidden or 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
| @include('partials.sidebar') | |
| To pass the data the sidebar needs (in AppServiceProvider boot method) : | |
| view()->composer('partials.sidebar', function ($view) { | |
| // Get the $data | |
| $view->with('data', $data); |
This file contains hidden or 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
| url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVR42mJydnb+DwQMjCACBAACDABTiAfG7AT+jQAAAABJRU5ErkJggg==) #282828 |
This file contains hidden or 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
| /* --- DEBUG ---*/ | |
| /* подсвечиваем теги без необходимых атрибутов */ | |
| img:not([alt]), | |
| label:not([for]), | |
| input[type=submit]:not([value]) { | |
| outline:2px solid red; | |
| } |
This file contains hidden or 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
| $script = <<< JS | |
| //some script | |
| JS; | |
| //маркер конца строки, обязательно сразу, без пробелов и табуляции | |
| $this->registerJs($script, yii\web\View::POS_READY); | |
| // POS_HEAD | |
| // POS_BEGIN: после тэга <body> | |
| // POS_END: перед тэгом </body> | |
| // POS_LOAD: оборачивается в jQuery(window).load(). Note that by using this position, the method will automatically register the jQuery js file. |