Skip to content

Instantly share code, notes, and snippets.

View Natgho's full-sized avatar
🐍
Dreaming

Sezer Bozkır Natgho

🐍
Dreaming
View GitHub Profile
@Natgho
Natgho / callImageFunction.html
Created January 22, 2021 12:33
callImageFunction.hml
<image class="photo-detail" src="/common/huawei.png">
</image>
@Natgho
Natgho / thirdPageofApp.html
Created January 22, 2021 12:31
thirdPageOfApp.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
<div class="first-page-content">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">
@Natgho
Natgho / thirdPageofApp.js
Created January 22, 2021 12:29
thirdPageofApp.js
import geolocation from '@system.geolocation';
import battery from '@system.battery';
export default {
data: {
index: 0,
latlon: "",
accuracy: 0,
battery: 0,
percentage: 0,
@Natgho
Natgho / secondPageOfApp.js
Created January 22, 2021 12:25
secondPageOfApp.js
import geolocation from '@system.geolocation';
import battery from '@system.battery';
export default {
data: {
index: 0,
latlon: "",
accuracy: 0,
battery: 0,
percentage: 0,
@Natgho
Natgho / secondPageOfApp.html
Created January 22, 2021 12:23
secondPageofApp.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
<div class="first-page-content">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">
@Natgho
Natgho / firstPageofApp.html
Created January 22, 2021 12:18
firstPageofApp.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
<div class="first-page-content">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">
@Natgho
Natgho / BaseApp.js
Created January 22, 2021 12:16
BaseApp.js
export default {
data: {
index: 0,
},
onInit() {
}
};
@Natgho
Natgho / Index.html
Last active January 22, 2021 08:56
Index.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
First Page
</div>
<div class="swiper-item second-page">
Second Page
</div>
<div class="swiper-item third-page third-page-content">
Third Page
</div>
@Natgho
Natgho / firstPageDesign.htm
Last active January 22, 2021 08:53
firstPageDesign
<div class="container" style="flex-direction: column;">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">
Batarya Durumu: {{battery}}
</text>
@Natgho
Natgho / getLocation and Battery Information.js
Last active January 22, 2021 12:15
How to use Geolocation for Harmony OS
import geolocation from '@system.geolocation';
import battery from '@system.battery';
export default {
data: {
index: 0,
latlon: "",
accuracy: 0,
battery: 0,
},