This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void function(...args) { | |
const readMonth = function(monthIndex) { | |
if (monthIndex == 0) return "January"; | |
if (monthIndex == 1) return "February"; | |
if (monthIndex == 2) return "March"; | |
if (monthIndex == 3) return "April"; | |
if (monthIndex == 4) return "May"; | |
if (monthIndex == 5) return "June"; | |
if (monthIndex == 6) return "July"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readAllRecordIds = require("../sub-procedure/read-all-record-ids--async-throw"); | |
const selectArticleById = require("./select-by-id--async-throw"); | |
const Article = require("../../type/Article"); | |
module.exports = async ( | |
in_categoryId = "", | |
out_selected = [], | |
in_top = Infinity, | |
in_order = "default" /* default | reversed */ | |
) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fsPromises = require('fs/promises'); | |
const path = require('path'); | |
const handleHomeRequest = function(request, response) { | |
var indexHtml = path.join(__dirname, 'static', 'index.html'); | |
fsPromises.readFile(indexHtml) | |
.then(function(data) { | |
response.setHeader('content-type', textType.html); | |
response.writeHead(200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Subsequent Tasks */ | |
const findTheCarousel = function(decendant) { | |
var parent = decendant.parentElement; | |
var parentIsCarousel = (parent.className == 'carousel'); | |
if (parentIsCarousel) return parent; | |
else return findTheCarousel(parent); | |
}; | |
const findAllIndicators = function(carousel) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Reset CSS */ | |
* { | |
box-sizing: border-box; | |
padding: 0; | |
margin: 0; | |
} | |
/* Container */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>A Simple Carousel</title> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Reset CSS */ | |
* { | |
box-sizing: border-box; | |
padding: 0; | |
margin: 0; | |
} | |
/* Container */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>A Simple Carousel</title> | |
<link rel="stylesheet" href="carousel.css"> |
NewerOlder