Skip to content

Instantly share code, notes, and snippets.

View Karytonn's full-sized avatar
💻
Writing code and fixing bugs…

Karytonn Karytonn

💻
Writing code and fixing bugs…
View GitHub Profile
@Karytonn
Karytonn / isScroll.markdown
Last active October 20, 2021 15:46
Find out which element is creating horizontal scroll?

Find out which element is creating horizontal scroll?

Run the following code in your browser console to find out who is at fault:

let width = document.documentElement.offsetWidth;

[].forEach.call(
  document.querySelectorAll('*'),
 function(el) {
@Karytonn
Karytonn / Angular-dynamic-font-size.ts
Last active October 20, 2021 15:48
Angular: font-size and accessibility
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-header-accessibility',
templateUrl: './header-accessibility.component.html',
styleUrls: ['./header-accessibility.component.scss']
})
export class HeaderAccessibilityComponent implements OnInit {
//Default and reset font size
@Karytonn
Karytonn / Angular >> Move to different page
Last active October 20, 2021 15:48
Angular >> Move to different page
@Component({
selector: 'app-visit-rangle',
template: `
<button
type="button"
(click)="goTopage()">
Visit Rangle
</button>
`
})
@Karytonn
Karytonn / get-full-year-js.markdown
Last active October 20, 2021 10:19
Get full year - Js

Get Full Year with Javascript


Using on copyright

<div class="footer">
  <p>
    Copyright &copy;
  | Created by