Skip to content

Instantly share code, notes, and snippets.

View Draketheb4dass's full-sized avatar
🏠
Working from home

Jephte Colin Draketheb4dass

🏠
Working from home
View GitHub Profile
@Draketheb4dass
Draketheb4dass / attrStyle.html
Created December 4, 2019 00:11
Dom manipulation styling element
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Changing styles</title>
<style>
p .animal {
color: red;
}
@Draketheb4dass
Draketheb4dass / findbyTagClass.html
Created December 4, 2019 00:10
Dom manipulation with getElementsByClassName
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Finding multiple DOM elements by tag or class name</title>
</head>
<body>
<h1 id="heading">All about dogs</h1>
@Draketheb4dass
Draketheb4dass / findElbyId.html
Created December 4, 2019 00:09
Dom manipulation with getElementById
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: ID changer</title>
<style>
#id-card {
border:1px solid black;
border-radius:5px;
width: 400px;
@Draketheb4dass
Draketheb4dass / querySelect.html
Created December 4, 2019 00:08
Dom manipulation with query selector
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Finding elements by CSS selector</title>
<style>
p .animal {
color: red;
}
@Draketheb4dass
Draketheb4dass / webpage.html
Created November 27, 2019 04:03
Change box color DOM manipulation
<style>
.red-square {
width: 100px;
height: 100px;
background-color: crimson
}
</style>
@Draketheb4dass
Draketheb4dass / hello.html
Created November 27, 2019 04:01
Display hello DOM manipulation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script>
@Draketheb4dass
Draketheb4dass / todo.html
Created November 27, 2019 03:59
Todo DOM manipulation
<!DOCTYPE html>
<html>
<body>
<ul id="myList"></ul>
<input id="myInput" />
<button onclick="addItem()">Add</button>
<script>
@Draketheb4dass
Draketheb4dass / BuyFragment.kt
Created September 25, 2019 03:10
Fragment using MVVM, cardview inside recyclerview
package com.example.drake.kunuk.ui.buy
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.LinearLayoutManager