Skip to content

Commit 435cf2d

Browse files
authored
Merge pull request #3556 from CodeHarborHub/codeharborhub-v
Blogs page added
2 parents 951b1e7 + 6fb76ec commit 435cf2d

File tree

17 files changed

+321
-587
lines changed

17 files changed

+321
-587
lines changed

blog/Introduction to Cryptography and Cyber security.md renamed to blog/introduction-to-cryptography-and-cyber-security.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Cryptography and Its Use in Cyber Security'
2+
title: "Cryptography and Its Use in Cyber Security"
33
sidebar_label: Cryptography and Cyber Security
44
authors: [pujan-sarkar]
55
tags: [cryptography, cyber security, encryption, technology]
@@ -81,4 +81,3 @@ Zero-knowledge proofs enable one party to prove to another that a statement is t
8181
## Conclusion
8282

8383
Cryptography is a cornerstone of cyber security, providing the means to protect data and maintain privacy in an increasingly interconnected world. As technology advances and new threats emerge, the field of cryptography will continue to evolve, offering innovative solutions to ensure the security and integrity of our digital lives. By understanding and implementing cryptographic techniques, individuals and organizations can safeguard their information and build a secure future.
84-

courses/HTML/advanced-level/Integration-With-JS/Dyanamic-Concept.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@ title: "Dynamic Content with JavaScript"
44
sidebar_label: Dynamic Content
55
sidebar_position: 3
66
description: "Learn to Dynamic Content with JavaScript."
7-
tags: [courses,advance-level,Dynamic Content,Introduction]
8-
---
9-
10-
7+
tags: [courses, advance-level, Dynamic Content, Introduction]
8+
---
119

1210
JavaScript allows for dynamic manipulation of HTML content, enabling developers to create interactive web applications. This can involve modifying the DOM, responding to user events, and dynamically generating content.
1311

1412
**1. Changing Text Content:**
13+
1514
```html
1615
<button id="changeText">Change Text</button>
1716
<p id="dynamicText">Original Text</p>
1817

1918
<script>
20-
document.getElementById('changeText').onclick = function() {
21-
document.getElementById('dynamicText').textContent = 'Text Changed!';
22-
};
19+
document.getElementById("changeText").onclick = function () {
20+
document.getElementById("dynamicText").textContent = "Text Changed!";
21+
};
2322
</script>
2423
```
2524

2625
**2. Creating Elements Dynamically:**
26+
2727
```html
2828
<button id="addElement">Add Element</button>
2929
<div id="container"></div>
3030

3131
<script>
32-
document.getElementById('addElement').onclick = function() {
33-
const newElement = document.createElement('p');
34-
newElement.textContent = 'New Element Added!';
35-
document.getElementById('container').appendChild(newElement);
36-
};
32+
document.getElementById("addElement").onclick = function () {
33+
const newElement = document.createElement("p");
34+
newElement.textContent = "New Element Added!";
35+
document.getElementById("container").appendChild(newElement);
36+
};
3737
</script>
3838
```
3939

@@ -45,25 +45,25 @@ Using the Fetch API to retrieve data dynamically from an external source.
4545
<div id="dataContainer"></div>
4646

4747
<script>
48-
document.getElementById('fetchData').onclick = function() {
49-
fetch('https://jsonplaceholder.typicode.com/posts/1')
50-
.then(response => response.json())
51-
.then(data => {
52-
document.getElementById('dataContainer').innerHTML = `
48+
document.getElementById("fetchData").onclick = function () {
49+
fetch("https://jsonplaceholder.typicode.com/posts/1")
50+
.then((response) => response.json())
51+
.then((data) => {
52+
document.getElementById("dataContainer").innerHTML = `
5353
<h2>${data.title}</h2>
5454
<p>${data.body}</p>
5555
`;
56-
});
57-
};
56+
});
57+
};
5858
</script>
5959
```
6060

6161
### Summary Table
6262

63-
| Feature | Description |
64-
|--------------------------------|-------------------------------------------------|
65-
| **Embedding JavaScript** | Inline, internal, or external scripts in HTML. |
66-
| **Using Frameworks** | Integrate HTML with JavaScript frameworks like React. |
67-
| **Dynamic Content** | Modify the DOM, create elements, and fetch data dynamically with JavaScript. |
63+
| Feature | Description |
64+
| ------------------------ | ---------------------------------------------------------------------------- |
65+
| **Embedding JavaScript** | Inline, internal, or external scripts in HTML. |
66+
| **Using Frameworks** | Integrate HTML with JavaScript frameworks like React. |
67+
| **Dynamic Content** | Modify the DOM, create elements, and fetch data dynamically with JavaScript. |
6868

69-
By effectively integrating HTML and JavaScript, developers can create engaging, interactive web applications that enhance user experience and functionality.
69+
By effectively integrating HTML and JavaScript, developers can create engaging, interactive web applications that enhance user experience and functionality.
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,50 @@
11
---
2-
id: lesson-3
2+
id: lesson-2
33
title: "Using HTML with JavaScript Frameworks (e.g., React.js)"
44
sidebar_label: HTML with Frameworks
5-
sidebar_position: 3
5+
sidebar_position: 2
66
description: "Learn to Using HTML with JavaScript Frameworks (e.g., React.js)."
7-
tags: [courses,advance-level,Frameworks,Introduction]
8-
---
9-
10-
7+
tags: [courses, advance-level, Frameworks, Introduction]
8+
---
119

1210
JavaScript frameworks like React.js enable developers to build complex user interfaces using HTML-like syntax (JSX). React components encapsulate HTML and JavaScript, promoting a component-based architecture.
1311

1412
**Basic React Component:**
13+
1514
```javascript
16-
import React from 'react';
15+
import React from "react";
1716

1817
function Greeting() {
19-
return <h1>Hello, World!</h1>;
18+
return <h1>Hello, World!</h1>;
2019
}
2120

2221
export default Greeting;
2322
```
2423

2524
**Rendering a React Component:**
25+
2626
```javascript
27-
import React from 'react';
28-
import ReactDOM from 'react-dom';
29-
import Greeting from './Greeting';
27+
import React from "react";
28+
import ReactDOM from "react-dom";
29+
import Greeting from "./Greeting";
3030

31-
ReactDOM.render(<Greeting />, document.getElementById('root'));
31+
ReactDOM.render(<Greeting />, document.getElementById("root"));
3232
```
3333

3434
**HTML File:**
35+
3536
```html
36-
<!DOCTYPE html>
37+
<!doctype html>
3738
<html lang="en">
38-
<head>
39-
<meta charset="UTF-8">
39+
<head>
40+
<meta charset="UTF-8" />
4041
<title>React Example</title>
4142
<script src="https://unpkg.com/react/umd/react.development.js"></script>
4243
<script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>
4344
<script src="path/to/your/bundle.js" type="text/babel"></script>
44-
</head>
45-
<body>
45+
</head>
46+
<body>
4647
<div id="root"></div>
47-
</body>
48+
</body>
4849
</html>
49-
```
50+
```

0 commit comments

Comments
 (0)