Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <hr class="uk-divider-icon">  
<div  class="uk-flex uk-flex-center" uk-grid > 
	<div class="uk-width-3-4"> 
		<div id="_SortAndViewPanel" class="uk-section uk-section-muted uk-padding-small uk-clearfix uk-border-rounded uk-box-shadow-xlarge uk-overlay-primary" style="border: 0.5px solid silver; border-radius: 40px 10px; border-top-style:none; border-left-style:none"> 
			<div class="uk-flex uk-flex-middle uk-float-left">
<!-- byDir -->
				<ul id="_list_byDir" class="uk-switcher" uk-tooltip="title: Сортировка по направлению; pos: top-right"> 
					<li class="uk-animation-shake"><a uk-icon="icon: chevron-up; ratio:	1.5"></a></li>
				  <li class="uk-animation-shake"><a uk-icon="icon: chevron-down; ratio: 1.5"></a></li>
			  <div id="_hover_byDir" class="_byPanel" uk-dropdown="mode: hover; delay-hide: 0; pos: bottom-justify">
			    <ul class="uk-nav uk-dropdown-nav" uk-switcher="connect: #_list_byDir">
   	   		<li><a href="?byDir=asc">по возрастанию</a></li>
				  	<li><a href="?byDir=desc"> по убыванию</a></li>
<!-- byName -->
				<ul id="_list_byName" class="uk-margin-small-left uk-switcher" uk-tooltip="title: Сортировка по критерию; pos: top" >
				  <li class="uk-text-uppercase uk-animation-shake"><a class="uk-link-muted">Наименование</a></li>
				  <li class="uk-text-uppercase uk-animation-shake"><a class="uk-link-muted">Дата</a></li>
			  <div id="_hover_byName" class="_byPanel" uk-dropdown="mode: hover; delay-hide: 0; pos: bottom-justify">
				  <ul class="uk-nav uk-dropdown-nav" uk-switcher="connect: #_list_byName"> 
					  <li><a href="?byName=name">по наименованию</a></li>
					  <li><a href="?byName=timestanp_x">по дате</a></li>
			<div class="uk-flex uk-flex-middle uk-float-right">

 			<a class="uk-button uk-button-default" onclick="sendGet('?sendGet=FormТор')">send xhr GET</a>
 	   		<div class="uk-inline">
		    	<button class="uk-button uk-button-default" type="button">dropdown</button>
 	     		<div uk-dropdown>
      	 		<ul class="uk-nav uk-dropdown-nav">
       	   		<li class="uk-nav-header">TEST</li>
       	   		<li><a href="?sendGet=FormDown">send GET</a></li>

<!-- byCount -->
				<ul id="_list_byCount" class="uk-switcher" uk-tooltip="title: Количество элементов на странице; pos: top">
					<li class="uk-animation-shake"><a class="uk-link-muted">15</a></li>
					<li class="uk-animation-shake"><a class="uk-link-muted">30</a></li>
					<li class="uk-animation-shake"><a class="uk-link-muted">60</a></li>
					<li class="uk-animation-shake"><a class="uk-link-muted">80</a></li>
				<div id="_hover_byCount" class="_byPanel" uk-dropdown="mode: hover; delay-hide: 0;  pos: bottom-justify">
					<ul class="uk-nav uk-dropdown-nav" uk-switcher="connect: #_list_byCount">
						<li><a href="?byCount=15">15</a></li>
						<li><a href="?byCount=30">30</a></li>
						<li><a href="?byCount=60">60</a></li>
						<li><a href="?byCount=80">80</a></li>
 <!-- byView -->
				<ul id="_list_byView" class="uk-margin-small-left uk-link-reset uk-switcher" uk-tooltip="title: Вид каталога; pos: top-left">
					<li class="uk-animation-shake"><a uk-icon="icon: list; ratio:	1.5"></a></li>
					<li class="uk-animation-shake"><a uk-icon="icon: grid; ratio:	1.5"></a></li>
				<div id="_hover_byView" class="_byPanel" uk-dropdown="mode: hover; delay-hide: 0;  pos: bottom-justify">
					<span>вид каталога</span> 
					<ul class="uk-nav uk-dropdown-nav" uk-switcher="connect: #_list_byView">
						<li><a href="?byView=list">список</a></li>
						<li><a href="?byView=board">плитка</a></li>
<hr class="uk-divider-icon">
<!--div class="uk-flex uk-flex-center">
  <button class="uk-button uk-button-secondary uk-width-1-2 uk-button-small" onclick="showLoc();">show current location</button>




                var util = UIkit.util;
var svPanel = util.$('#_SortAndViewPanel'); //основная панель
var svPanels = util.$$('._byPanel');        //списки выбора параметров 

util.ready(function () {
  util.on(svPanels, 'click', function(event){ //событие по клику на панели 
    var aIndex=-1; //индекс элемента активной панели
    if ('A'){ 
 //     console.log(event);

// =;       //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//      window.location.href =;       //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//    util.trigger(event, sendGet(;   //передать get значение в php самому себе 
    sendGet(;   //передать get значение в php самому себе

    util.addClass(svPanel, 'uk-overlay-primary'); //затемнить панель
      aIndex = util.index(;
   svPanels.forEach(function(userItem) {    //загасить активную панель
     if (util.isInView(userItem)) {
  util.on('a', 'click', function(event){ //only test
 //   console.log(;
 //   util.trigger(event, sendGet(;
 //     sendGet(;
  util.removeClass(svPanel, 'uk-overlay-primary');

  function POSTreqReadyStateChange() {
    if (request.readyState == 4 && request.status == 200)

  function sendGet(body){
    var xhr = new XMLHttpRequest();'GET', body);
 //   xhr.setRequestHeader("Content-Type", "text/xml");
    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4) {
            if (xhr.status == 200) {
                var data = xhr.responseText;
//				console.log(data);
//				var jsonResponse = JSON.parse(data);
//				console.log(jsonResponse["Data"]);

function showLoc() {
   var x = window.location;
   var t = ['Property - Typeof - Value', 'window.location - ' + (typeof x) + ' - ' + x ];
   for (var prop in x){
     t.push(prop + ' - ' + (typeof x[prop]) + ' - ' +  (x[prop] || 'n/a'));