auto-scripts/mybootstrap
#/bin/bash
BOOTSTRAP_VER='5.1.0'
JQUERY_VER='3.6.0'
echo 'Creo struttura progetto...'
mkdir $1
cd $1
mkdir js
mkdir css
echo "Recupero Bootstrap"
wget https://github.com/twbs/bootstrap/releases/download/v$BOOTSTRAP_VER/bootstrap-$BOOTSTRAP_VER-dist.zip -O bootstrap.zip
unzip -o bootstrap.zip
rm bootstrap.zip
cp -r bootstrap-$BOOTSTRAP_VER-dist/* .
rm -fr bootstrap-$BOOTSTRAP_VER-dist/
echo "Recupero Popper"
wget https://unpkg.com/@popperjs/core@2 -O js/popper.min.js
echo "Recupero jquery..."
wget https://code.jquery.com/jquery-$JQUERY_VER.min.js -O js/jquery.min.js
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Hello bootstrap!</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="js/jquery.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/popper.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark" aria-label="Third navbar example">
<div class="container-fluid">
<a class="navbar-brand" href="#">Expand at sm</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsExample03" aria-controls="navbarsExample03" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample03">
<ul class="navbar-nav me-auto mb-2 mb-sm-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled">Disabled</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown03" data-bs-toggle="dropdown" aria-expanded="false">Dropdown</a>
<ul class="dropdown-menu" aria-labelledby="dropdown03">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
</ul>
<form>
<input class="form-control" type="text" placeholder="Search" aria-label="Search">
</form>
</div>
</div>
</nav>
<div class="alert alert-success" role="alert">
Ciao bootstrap !
</div>
</body>
</html>' >index.html