YouTube
YouTube காணொளி முகவரி அல்லது காணொளி ID-ஐப் பெற்று உட்பொதிக்கும் தொகுதியாக உருவாக்குகிறது. ஆவணத்தில் முழு முகவரி அல்ல, 11 எழுத்து காணொளி ID மற்றும் அகலம் மட்டுமே சேமிக்கப்படும்; புதிய காணொளி மையச் சீரமைப்பிலும் 70% அகலத்திலும் தொடங்கும்.
அகலம் நிர்ணயிக்கப்பட்ட நிலைகளில் தேர்ந்தெடுக்கப்படுகிறது; சீரமைப்பு காணொளியைச் சுற்றியுள்ள பத்தியில் சேமிக்கப்படுகிறது. தொகுப்பியில் முதல் கிளிக் காணொளியைத் தேர்ந்தெடுக்கும்; தேர்ந்தெடுத்த பின் மீண்டும் கிளிக் செய்தால் இயக்கலாம். முகவரியை மாற்றுவதற்குப் பதில் காணொளியை நீக்கி புதியதைச் சேர்க்கவும்.
npm install nabi-noteimport {
createNabiWith, mountSurface, mountToolbar, mountContextToolbar,
mountHints, watchSettle, codeWing, imageWing, youtubeWing,
mountViewTools,
} from 'nabi-note'
const selected = [
codeWing,
imageWing,
youtubeWing,
]
const { nabi, registry } = createNabiWith(selected)
// Bring your own highlighter (Prism, highlight.js, Shiki, …) — the wing stays as it is
// and only the attach is swapped (`makeCodeAttach` ships from the same door)
// { ...codeWing, attach: makeCodeAttach({ highlight: (source, lang) => [{ text: source }] }) }
const root = document.querySelector('.nabi')!
const content = document.querySelector('.nabi-content')!
// The locale also sets the direction — Arabic and Urdu run right to left
mountSurface({ nabi, registry, root: content, locale: 'ta' })
const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale: 'ta' }
const toolbar = mountToolbar({ ...shared, root: document.querySelector('#toolbar')! })
const context = mountContextToolbar({ ...shared, root: document.querySelector('#context')! })
mountHints({ toolbar, context, root, surface: content })
// The preview and fullscreen buttons — they stand their own box at the end of the row
mountViewTools({ ...shared, root, container: document.querySelector('#toolbar')! })
// on every change — hook up your own code here
// nabi.onChange(() => user_callback(nabi.getHtml()))const selected = wings().use('youtube').build()CSS பாணிகள்
காணொளியின் எல்லை மற்றும் மூலைகளை .nabi-content iframe மூலம் மாற்றலாம். சேமித்த அகலத்தையும் சீரமைப்பையும் மாற்றாதீர்கள்.
.article-body iframe {
border-radius: 14px;
box-shadow: 0 10px 28px rgb(0 0 0 / 16%);
}aspect-ratio, அகலம், சீரமைப்பு margin ஆகியவற்றைத் தொகுப்பு காணொளி அளவைத் தக்கவைக்கப் பயன்படுத்துவதால் அவற்றை மேலெழுதாதீர்கள்.