let originalSrc = myGif.src
myGif.src = 'data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=' // 1px black gif
myGif.src = originalSrc
Демо: https://jsfiddle.net/mtsb267m///Работа с текстом
var canvas = document.getElementById("textImgKonstr");
var ctx = canvas.getContext("2d");
var elem = document.querySelector('#myElement')
console.log( elem.innerHTML )
$tagsAct = [];//активные теги
$tagsAll = [];//все теги
while($enum_fields21 = $dbEl->GetNext()){
$tagsAct[] = $enum_fields21["TEGI_VALUE"];
}
while($enum_fields = $property_enums->GetNext()){
$tagsAll[$enum_fields["ID"]] = $enum_fields["VALUE"];
}
foreach($tagsAll as $id => $name){
$checked = in_array($name["VALUE"], $tagsAct) ? ' checked' : '';
echo "<input type=\"checkbox\" name=\"TEGI[]\" value=\"$id\"$checked>$name<br>";
}
jQuery UI 1.12 officially supports jQuery 1.7.0 – 3.1.0.
Third-party libraries© getbootstrap.com/javascript
Bootstrap does not officially support third-party JavaScript libraries like Prototype or jQuery UI. Despite .noConflict and namespaced events, there may be compatibility problems that you need to fix on your own.
var fmap=(s,a)=>(x,y)=>s(a(x,y))
INSERT INTO new_table1 (id, in_num, in_date, correspondent, out_num, uot_date, content, type, id_pach)
SELECT id_letter, in_num, in_date, correspondent, out_num, uot_date, content, type, id_pach FROM old_table
GROUP BY in_num, in_date
INSERT INTO new_table2 (id_letter, contractor, isp_date, label_num, label_date, label_mess, date_1)
SELECT id as id_letter, contractor, isp_date, label_num, label_date, label_mess, date_1 FROM old_table
GROUP BY ...
#menu-item-362, #menu-item-362 > a {
background: orange;
position: relative; /* the magic */
z-index: 1; /* is here */
}
;(function(){
var photoId = <?=$photoId?>; // это не глобальная переменная
if (photoId) showPopup(photoId)
})()
if (location.hash && $('#tabs ' + location.hash).length ) {
// ...
}
$('.price-selector_item').addClass('price-selector_item--selected');
В переводе на русский:$('select').on('change', function(){
var val = $(this).val()
$('.price-selector_item[data-select='+val+']').show()
.siblings().hide()
})
Вместо show и hide можете использовать addClass() / removeClass()