dnrops.gitlink.net/posts/dart/flutter_dev_test.html

703 lines
52 KiB
HTML
Raw Normal View History

2024-05-05 23:43:06 +08:00
<!DOCTYPE HTML>
<html lang="en" class="sidebar-visible no-js coal">
<head>
<!-- Book generated using mdBook -->
<meta charset="UTF-8">
<title>Flutter Dev Test - Andrew&#x27;s Blog</title>
<!-- Custom HTML head -->
<meta name="description" content="Andrew Ryan&#x27;s Blog">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff" />
<link rel="icon" href="../../favicon.svg">
<link rel="shortcut icon" href="../../favicon.png">
<link rel="stylesheet" href="../../css/variables.css">
<link rel="stylesheet" href="../../css/general.css">
<link rel="stylesheet" href="../../css/chrome.css">
<!-- Fonts -->
<link rel="stylesheet" href="../../FontAwesome/css/font-awesome.css">
<link rel="stylesheet" href="../../fonts/fonts.css">
<!-- Highlight.js Stylesheets -->
<link rel="stylesheet" href="../../highlight.css">
<link rel="stylesheet" href="../../tomorrow-night.css">
<link rel="stylesheet" href="../../ayu-highlight.css">
<!-- Custom theme stylesheets -->
<link rel="stylesheet" href="../../src/style/custom.css">
<!-- MathJax -->
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</head>
<body>
<div id="body-container">
<!-- Provide site root to javascript -->
<script>
var path_to_root = "../../";
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "coal" : "coal";
</script>
<!-- Work around some values being stored in localStorage wrapped in quotes -->
<script>
try {
var theme = localStorage.getItem('mdbook-theme');
var sidebar = localStorage.getItem('mdbook-sidebar');
if (theme.startsWith('"') && theme.endsWith('"')) {
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
}
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
}
} catch (e) { }
</script>
<!-- Set the theme before any content is loaded, prevents flash -->
<script>
var theme;
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('no-js')
html.classList.remove('coal')
html.classList.add(theme);
html.classList.add('js');
</script>
<!-- Hide / unhide sidebar before it is displayed -->
<script>
var html = document.querySelector('html');
var sidebar = null;
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
} else {
sidebar = 'hidden';
}
html.classList.remove('sidebar-visible');
html.classList.add("sidebar-" + sidebar);
</script>
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
<div class="sidebar-scrollbox">
2024-05-09 21:02:15 +08:00
<ol class="chapter"><li class="chapter-item affix "><a href="../../index.html">Andrew's Blog</a></li><li class="chapter-item "><a href="../../posts/linux/linux.html"><strong aria-hidden="true">1.</strong> Linux</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../posts/linux/install_linux.html"><strong aria-hidden="true">1.1.</strong> install linux</a></li><li class="chapter-item "><a href="../../posts/linux/bash_profile.html"><strong aria-hidden="true">1.2.</strong> bash profile</a></li><li class="chapter-item "><a href="../../posts/linux/command_list.html"><strong aria-hidden="true">1.3.</strong> command list</a></li><li class="chapter-item "><a href="../../posts/linux/git_guide.html"><strong aria-hidden="true">1.4.</strong> git guide</a></li><li class="chapter-item "><a href="../../posts/linux/tar.html"><strong aria-hidden="true">1.5.</strong> tar</a></li><li class="chapter-item "><a href="../../posts/linux/git_cheatsheet.html"><strong aria-hidden="true">1.6.</strong> Git Cheatsheet</a></li><li class="chapter-item "><a href="../../posts/linux/bash_cheatsheet.html"><strong aria-hidden="true">1.7.</strong> Bash Cheatsheet</a></li></ol></li><li class="chapter-item "><a href="../../posts/macos/mac.html"><strong aria-hidden="true">2.</strong> MacOS</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../posts/macos/macos_profiles.html"><strong aria-hidden="true">2.1.</strong> macos profiles</a></li><li class="chapter-item "><a href="../../posts/macos/macos_pwn_env_setup.html"><strong aria-hidden="true">2.2.</strong> macos pwn env setup</a></li></ol></li><li class="chapter-item "><a href="../../posts/windows/windows.html"><strong aria-hidden="true">3.</strong> Windows</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../posts/windows/windows.html"><strong aria-hidden="true">3.1.</strong> Windows</a></li><li class="chapter-item "><a href="../../posts/windows/windows10_use_powershell_dedup_redundent_path.html"><strong aria-hidden="true">3.2.</strong> Windows10 use PowerShell dedup redundent PATH</a></li></ol></li><li class="chapter-item "><a href="../../posts/cs/cs.html"><strong aria-hidden="true">4.</strong> C#</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../posts/cs/learn_cs_basics.html"><strong aria-hidden="true">4.1.</strong> Learn C# Basics</a></li></ol></li><li class="chapter-item "><a href="../../posts/swift/swift.html"><strong aria-hidden="true">5.</strong> Swift</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../posts/swift/learn_swift.html"><strong aria-hidden="true">5.1.</strong> learn swift basics</a></li><li class="chapter-item "><a href="../../posts/swift/swift_extensions.html"><strong aria-hidden="true">5.2.</strong> Swift extensions</a></li><li class="chapter-item "><a href="../../posts/swift/swiftui_extension.html"><strong aria-hidden="true">5.3.</strong> SwiftUI extensions</a></li><li class="chapter-item "><a href="../../posts/swift/install_swift.html"><strong aria-hidden="true">5.4.</strong> install swift</a></li><li class="chapter-item "><a href="../../posts/swift/task_planner.html"><strong aria-hidden="true">5.5.</strong> implment task panner app with SwiftUI</a></li><li class="chapter-item "><a href="../../posts/swift/swift_cheat_sheet.html"><strong aria-hidden="true">5.6.</strong> Swift Cheat Sheet</a></li><li class="chapter-item "><a href="../../posts/swift/yinci_url.html"><strong aria-hidden="true">5.7.</strong> Personal privacy protocol</a></li><li class="chapter-item "><a href="../../posts/swift/swift_regular_exressions.html"><strong aria-hidden="true">5.8.</strong> Swift regular exressions</a></li><li class="chapter-item "><a href="../../posts/ios/how_to_create_beautiful_ios_charts_in_swift.html"><strong aria-hidden="true">5.9.</strong> How to Create Beautiful iOS Charts in Swift</a></li><li class="cha
2024-05-05 23:43:06 +08:00
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
</nav>
<!-- Track and set sidebar scroll position -->
<script>
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
sidebarScrollbox.addEventListener('click', function(e) {
if (e.target.tagName === 'A') {
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
}
}, { passive: true });
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
sessionStorage.removeItem('sidebar-scroll');
if (sidebarScrollTop) {
// preserve sidebar scroll position when navigating via links within sidebar
sidebarScrollbox.scrollTop = sidebarScrollTop;
} else {
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
var activeSection = document.querySelector('#sidebar .active');
if (activeSection) {
activeSection.scrollIntoView({ block: 'center' });
}
}
</script>
<div id="page-wrapper" class="page-wrapper">
<div class="page">
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar" class="menu-bar sticky">
<div class="left-buttons">
<button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
<i class="fa fa-bars"></i>
</button>
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
<i class="fa fa-paint-brush"></i>
</button>
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
</ul>
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
<i class="fa fa-search"></i>
</button>
</div>
<h1 class="menu-title">Andrew&#x27;s Blog</h1>
<div class="right-buttons">
<a href="https://gitee.com/dnrops/dnrops" title="Git repository" aria-label="Git repository">
<i id="git-repository-button" class="fa fa-github"></i>
</a>
</div>
</div>
<div id="search-wrapper" class="hidden">
<form id="searchbar-outer" class="searchbar-outer">
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
</form>
<div id="searchresults-outer" class="searchresults-outer hidden">
<div id="searchresults-header" class="searchresults-header"></div>
<ul id="searchresults">
</ul>
</div>
</div>
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
<script>
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
});
</script>
<div id="content" class="content">
<main>
<h1 id="flutter-developer-test-from-digitalcreation"><a class="header" href="#flutter-developer-test-from-digitalcreation">flutter developer test from digitalcreation</a></h1>
<h2 id="home_pagedart"><a class="header" href="#home_pagedart">home_page.dart</a></h2>
<pre><code class="language-dart">import 'package:flutter/material.dart';
import 'package:flutter_developer_test/model/language.dart';
import 'package:flutter_developer_test/pages/home/components/open_in_new.dart';
import 'package:flutter_developer_test/theme/app_theme.dart';
import 'package:flutter_developer_test/utils/fetch_data.dart';
import 'package:url_launcher/url_launcher.dart';
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State&lt;HomePage&gt; createState() =&gt; _HomePageState();
}
class _HomePageState extends State&lt;HomePage&gt;
with SingleTickerProviderStateMixin {
TextEditingController _searchTextController = TextEditingController();
Color clickedTagBackgroundColor = Color(0xff5626df);
Color clickedTagTextColor = Color(0xffffffff);
List&lt;LanguageData&gt; resultdata = [];
bool showSearchError = true;
bool showSearchLoading = false;
double tagItemPadValue = 10;
late AnimationController _animationController;
@override
initState() {
_animationController =
AnimationController(vsync: this, duration: Duration(seconds: 4));
super.initState();
setState(() {
tagBackgroundColorList[0] = clickedTagBackgroundColor;
tagTextColorList[0] = clickedTagTextColor;
_searchTextController.text = tagList[0];
getData(_searchTextController.text);
showSearchLoading = true;
tagItemPadValue = 0;
});
}
@override
void dispose() {
_animationController.dispose();
super.dispose();
}
getData(String languageName) async {
try {
Map&lt;String, dynamic&gt; result = await getLanguageData(languageName);
List&lt;LanguageData&gt; decodeResult = result['result']!;
String statuscode = result['statuscode']!;
String jsonstring = result['jsonstring']!;
if (decodeResult.isNotEmpty) {
setState(() {
showSearchError = false;
showSearchLoading = false;
});
} else if (statuscode != &quot;200&quot; || jsonstring == &quot;[]&quot;) {
setState(() {
showSearchError = true;
showSearchLoading = false;
});
} else {
setState(() {
showSearchLoading = true;
});
}
setState(() {
resultdata = [];
});
resultdata.addAll(decodeResult);
} catch (e) {
// print(e);
setState(() {
showSearchError = true;
});
}
}
Widget _buildShowLoading(Function retry) {
retry();
return Image.asset(&quot;images/loading.gif&quot;);
}
Future&lt;void&gt; _launchUrl(String url) async {
final Uri _url = Uri.parse(url);
if (!await launchUrl(_url)) {
throw Exception('Could not launch $_url');
}
}
Widget _buildTagItem(
String _tagName, Color tagBackgroundColor, Color tagTextColor) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Container(
width: 15.0 * _tagName.length,
height: 40,
decoration: BoxDecoration(
color: tagBackgroundColor,
borderRadius: BorderRadius.all(Radius.circular(15)),
),
child: Center(
child: Text(
_tagName,
style: TextStyle(color: tagTextColor),
)),
),
);
}
Widget _buildSearchResult() {
return Expanded(
child: Container(
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20), color: Color(0xffffffff)),
child: showSearchLoading
? _buildShowLoading(() async {
await getData(_searchTextController.text);
})
: showSearchError
? _buildSearchingError()
: ListView.separated(
itemCount: resultdata.length,
separatorBuilder: (context, index) {
return Padding(
padding: EdgeInsets.symmetric(horizontal: 10),
child: Divider());
},
itemBuilder: ((context, index) {
return _buildSearchResultItem(index);
}),
),
),
);
}
Widget _buildSearchResultItem(int index) {
return Container(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
width: 100,
height: 100,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
border: Border.all(
color: Color(0xFFCED2D2),
width: 1,
style: BorderStyle.solid,
),
),
child: Container(
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Image.network(
resultdata[index].image,
width: 50,
height: 50,
),
),
),
),
SizedBox(
width: 15,
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
resultdata[index].title,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 15,
),
),
Container(
width: 190,
height: 60,
child: Text(
resultdata[index].description,
softWrap: true,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: Color.fromARGB(255, 100, 93, 93),
fontSize: 11,
overflow: TextOverflow.ellipsis,
),
),
),
],
),
SizedBox(
width: 2,
),
GestureDetector(
onTap: () {
_launchUrl(resultdata[index].url);
print(resultdata[index].url);
},
child: OpenInNewIcon())
],
),
),
);
}
List&lt;String&gt; tagList = [&quot;Language&quot;, &quot;Build&quot;, &quot;Design&quot;, &quot;Cloud&quot;];
List&lt;Color&gt; tagBackgroundColorList = [
Color(0xffffffff),
Color(0xffffffff),
Color(0xffffffff),
Color(0xffffffff)
];
List&lt;Color&gt; tagTextColorList = [
Color(0xFF4B4D4F),
Color(0xFF4B4D4F),
Color(0xFF4B4D4F),
Color(0xFF4B4D4F)
];
List&lt;Widget&gt; _buildTagList() {
List&lt;Widget&gt; list = [];
for (var i = 0; i &lt; tagList.length; i++) {
list.add(GestureDetector(
onTap: () async {
setState(() {
showSearchLoading = true;
resultdata = [];
_searchTextController.text = tagList[i];
for (var j = 0; j &lt; tagBackgroundColorList.length; j++) {
tagBackgroundColorList[j] = Color(0xffffffff);
tagTextColorList[j] = Color(0xFF4B4D4F);
}
tagBackgroundColorList[i] = clickedTagBackgroundColor;
tagTextColorList[i] = clickedTagTextColor;
});
var _ = await getData(tagList[i]);
},
child: _buildTagItem(
tagList[i], tagBackgroundColorList[i], tagTextColorList[i]),
));
}
return list;
}
Widget _buildSearchingError() {
return Column(children: [
SizedBox(
height: 20,
),
Image(image: AssetImage(&quot;images/error.jpeg&quot;)),
Text(
&quot;Aaaaah!&quot;,
style: TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
),
Text(
&quot;Something went wrong&quot;,
style: TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
),
SizedBox(
height: 20,
),
Text(
&quot;Brace yourself till we get the error fixed.&quot;,
style: TextStyle(fontWeight: FontWeight.w600),
),
SizedBox(
height: 10,
),
Text(
&quot;You may also refresh the page&quot;,
style: TextStyle(fontWeight: FontWeight.w400),
),
SizedBox(
height: 10,
),
Text(
&quot;or try again later&quot;,
style: TextStyle(fontWeight: FontWeight.w400),
)
]);
}
Widget _buildHomeContent() {
return Container(
padding: const EdgeInsets.only(top: 40),
child: Column(children: [
Padding(
padding: const EdgeInsets.only(top: 20, left: 20, right: 20),
child: Container(
height: 60,
width: double.infinity,
decoration: const BoxDecoration(
color: Color(0xffffffff),
borderRadius: BorderRadius.all(Radius.circular(13.0)),
),
child: Row(
children: [
const Padding(
padding: EdgeInsets.symmetric(horizontal: 10),
child: Icon(
Icons.search,
color: Color(0xffa3a8b2),
size: 30,
),
),
Expanded(
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: TextFormField(
showCursor: true,
controller: _searchTextController,
onChanged: (value) {
setState(() {
if (!tagList.contains(value)) {
for (var j = 0;
j &lt; tagBackgroundColorList.length;
j++) {
setState(() {
tagBackgroundColorList[j] = Color(0xffffffff);
tagTextColorList[j] = Color(0xFF4B4D4F);
});
}
} else if (tagList.contains(value)) {
int index = tagList.indexOf(value);
tagBackgroundColorList[index] =
clickedTagBackgroundColor;
tagTextColorList[index] = clickedTagTextColor;
}
});
},
onFieldSubmitted: (value) {
setState(() {
resultdata = [];
showSearchLoading = true;
_searchTextController.text = value;
getData(_searchTextController.text);
});
},
style: const TextStyle(
fontFamily: AppTheme.fontName,
fontSize: 16,
color: Color.fromARGB(255, 0, 0, 0),
),
keyboardType: TextInputType.text,
decoration: InputDecoration(
hintText: 'Search..',
border: InputBorder.none,
hintStyle: TextStyle(
fontSize: 16,
letterSpacing: 0.2,
color: AppTheme.deactivatedText,
),
suffixIcon: GestureDetector(
onTap: () {
_searchTextController.clear();
_searchTextController.text = &quot;&quot;;
},
child: _searchTextController.text != &quot;&quot;
? Icon(
Icons.clear,
size: 30,
color: Color(0xffa3a8b2),
)
: SizedBox()),
),
),
),
),
],
),
),
),
SizedBox(
height: 25,
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: _buildTagList(),
),
),
),
SizedBox(
height: 25,
),
_buildSearchResult()
]),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppTheme.appBackgroundColor,
body: _buildHomeContent(),
);
}
}
</code></pre>
<h2 id="maindart"><a class="header" href="#maindart">main.dart</a></h2>
<pre><code class="language-dart">import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_developer_test/pages/home/home_page.dart';
import 'package:flutter_developer_test/routes/app_pages.dart';
import 'package:flutter_developer_test/routes/app_routes.dart';
import 'package:get/get.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Splash Screen',
theme: ThemeData(
primarySwatch: Colors.green,
),
home: MyHomePage(),
debugShowCheckedModeBanner: false,
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State&lt;MyHomePage&gt; createState() =&gt; _MyHomePageState();
}
class _MyHomePageState extends State&lt;MyHomePage&gt; {
@override
void initState() {
super.initState();
Timer(
Duration(seconds: 2),
() =&gt; {
// Navigator.of(context).push(ScaleRoute(SearchLoading()));
Navigator.pushReplacement(
context, MaterialPageRoute(builder: (context) =&gt; HomePage()))
});
}
@override
Widget build(BuildContext context) {
return GetMaterialApp(
initialRoute: AppRoutes.SPLASH,
getPages: AppPages.list,
debugShowCheckedModeBanner: false,
);
}
}
</code></pre>
</main>
<nav class="nav-wrapper" aria-label="Page navigation">
<!-- Mobile navigation buttons -->
<a rel="prev" href="../../posts/dart/dart_cheat_sheet.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
<i class="fa fa-angle-left"></i>
</a>
<a rel="next" href="../../posts/rust/rust.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
<i class="fa fa-angle-right"></i>
</a>
<div style="clear: both"></div>
</nav>
</div>
</div>
<nav class="nav-wide-wrapper" aria-label="Page navigation">
<a rel="prev" href="../../posts/dart/dart_cheat_sheet.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
<i class="fa fa-angle-left"></i>
</a>
<a rel="next" href="../../posts/rust/rust.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
<i class="fa fa-angle-right"></i>
</a>
</nav>
</div>
<script>
window.playground_line_numbers = true;
</script>
<script>
window.playground_copyable = true;
</script>
<script src="../../ace.js"></script>
<script src="../../editor.js"></script>
<script src="../../mode-rust.js"></script>
<script src="../../theme-dawn.js"></script>
<script src="../../theme-tomorrow_night.js"></script>
<script src="../../elasticlunr.min.js"></script>
<script src="../../mark.min.js"></script>
<script src="../../searcher.js"></script>
<script src="../../clipboard.min.js"></script>
<script src="../../highlight.js"></script>
<script src="../../book.js"></script>
<!-- Custom JS scripts -->
<script src="../../src/js/custom.js"></script>
</div>
</body>
</html>