milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Dialog

Details
Written by: Stanko Milosev
Category: HTML5
Published: 14 March 2015
Last Updated: 18 August 2020
Hits: 12712
One example of dialog in Chrome, in FireFox it is not working.

HTML:

<!DOCTYPE html>
<html>
	<body>
	
		<dialog class="modal">
			<p>This is da dialog!</p>
			<button id="close">Close</button>
		</dialog>
		<button id="show">Open Dialog!</button>
		
	</body>
</html>
JS:
<script type="text/javascript">	
	var dialog = document.querySelector('dialog');
	document.querySelector('#show').onclick = function() {
	  dialog.show();
	};
	document.querySelector('#close').onclick = function() {
	  dialog.close();
	};
</script>
Here note line:

document.querySelector('dialog')

this is something new what I learned today.

Live example:

This is da dialog!

Example taken from this web site, via this one. On Tympanus you can find few more examples of overlay window, if you need support for older browsers.

Customize input type="range"

Details
Written by: Stanko Milosev
Category: HTML5
Published: 23 January 2015
Last Updated: 28 January 2015
Hits: 11351

Example of customizing HTML5 input type range.

HTML:

<!DOCTYPE html>
<html>

	<head>
		<link type="text/css" rel="stylesheet" href="/myStyle.css">
	</head>
	
	<body>
	
			<input type="range" id="test" min="10" max="100" step="1">

	</body>

</html>

CSS:

input[type='range'] {
    -webkit-appearance: none !important;
    background:red;
    height:7px;
}
input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    background:blue;
    width: 34px;
    height: 34px;
	border: 1px solid rgba(200,200,200,1);
    border-radius: 18px;
}

Look on an example here.

Google earth

Details
Written by: Stanko Milosev
Category: Arch linux
Published: 28 February 2012
Last Updated: 30 November -0001
Hits: 6390

If google earth crashes, as it was on my machine, then try to download libGL.so.1 from here, and copy it to /opt/google/earth/free

Taken from here.

Shut Down Menu Extension

Details
Written by: Stanko Milosev
Category: Arch linux
Published: 06 February 2012
Last Updated: 30 November -0001
Hits: 5758

gnome-shell-frippery

An unofficial extension pack providing GNOME2 like features for GNOME3.

  1. ipconfig /renew
  2. Android
  3. Start X as a boot
  4. USB 2.0 and Windows 7

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 161 of 165

  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165