<a href="geo:37.786971,-122.399677;u=35">Wikimedia Headquarters</a>
'products': <?= json_encode($products, JSON_UNESCAPED_UNICODE) ?>,
wv = (WebView) findViewById(R.id.webview);
WebSettings ws = wv.getSettings();
ws.setJavaScriptEnabled(true);
ws.setAllowFileAccess(true);
if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.ECLAIR) {
try {
Log.d(TAG, "Enabling HTML5-Features");
Method m1 = WebSettings.class.getMethod("setDomStorageEnabled", new Class[]{Boolean.TYPE});
m1.invoke(ws, Boolean.TRUE);
Method m2 = WebSettings.class.getMethod("setDatabaseEnabled", new Class[]{Boolean.TYPE});
m2.invoke(ws, Boolean.TRUE);
Method m3 = WebSettings.class.getMethod("setDatabasePath", new Class[]{String.class});
m3.invoke(ws, "/data/data/" + getPackageName() + "/databases/");
Method m4 = WebSettings.class.getMethod("setAppCacheMaxSize", new Class[]{Long.TYPE});
m4.invoke(ws, 1024*1024*8);
Method m5 = WebSettings.class.getMethod("setAppCachePath", new Class[]{String.class});
m5.invoke(ws, "/data/data/" + getPackageName() + "/cache/");
Method m6 = WebSettings.class.getMethod("setAppCacheEnabled", new Class[]{Boolean.TYPE});
m6.invoke(ws, Boolean.TRUE);
Log.d(TAG, "Enabled HTML5-Features");
}
catch (NoSuchMethodException e) {
Log.e(TAG, "Reflection fail", e);
}
catch (InvocationTargetException e) {
Log.e(TAG, "Reflection fail", e);
}
catch (IllegalAccessException e) {
Log.e(TAG, "Reflection fail", e);
}
}
echo "<strong>Фотографии успешно загружены!</strong>";
function* foo(){
var index = 0;
while(index <= 2)
yield index++; // yield будет прерывать работу функции на этом месте
}
var iterator = foo();
console.log(iterator.next()); // { index:0 }
console.log(iterator.next()); // { index:1 }
console.log(iterator.next()); // { index:2 }
Request URL:http://chehl.ru/page/2/
Request Method:GET
Status Code:404 Not Found
<?php $this->registerJs(
'jQuery(document).ready(function($){
var smallWindow = false;
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 50) {
$("#logo-image").attr("src", "'.Yii::getAlias("@web").'/images/logos/Monogram.png")
$(".important-class").addClass("padding-on-my-header");
}
if (scroll < 50) {
$(".important-class").removeClass("padding-on-my-header");
$("#logo-image").attr("src", "'.Yii::getAlias("@web").'/images/logos/PetCare_Monogram.png")
}
}).resize(function(){
if ( !smallWindow && this.innerWidth <= 1024 ) {
smallWindow = true;
$(".top-bar-section").find("ul.right").hide(0).delay(500).show(0);
}
if ( smallWindow && this.innerWidth > 1024 ) {
smallWindow = false;
}
});
});');
?>