Skip to content

Commit

Permalink
removed: unused typed.js files and styles; cleaned up app.js code
Browse files Browse the repository at this point in the history
  • Loading branch information
Salmandabbakuti committed Feb 1, 2025
1 parent 8fa9741 commit 57e0d62
Show file tree
Hide file tree
Showing 12 changed files with 298 additions and 736 deletions.
68 changes: 40 additions & 28 deletions assets/scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,59 @@
const Portfolio = function () {
const Portfolio = (function () {
function makeWords() {
const words = [
{
text: "Smartcontracts",
weight: 9
}, {
},
{
text: "Web3",
weight: 13
}, {
},
{
text: "Solidity",
weight: 13
}, {
},
{
text: "JavaScript",
weight: 10
}, {
},
{
text: "programming",
weight: 9
}, {
},
{
text: "python",
weight: 8
}, {
},
{
text: "Chaincode",
weight: 9
}, {
},
{
text: "Dapps",
weight: 10
}, {
},
{
text: "decentralized",
weight: 9
}, {
},
{
text: "Ethereum",
weight: 12
}, {
},
{
text: "Hyperledger Fabric",
weight: 11
}, {
},
{
text: "Node.js",
weight: 13
}, {
},
{
text: "AWS",
weight: 11
}, {
},
{
text: "Cloud Computing",
weight: 12
},
Expand Down Expand Up @@ -113,12 +126,12 @@ const Portfolio = function () {
}

function makeWordCloud(words) {
$('.teaching-domains').jQCloud(words, { delay: 120 });
$(".teaching-domains").jQCloud(words, { delay: 120 });
}

function displayWordCloud() {
let count = 1;
$(window).on('scroll', function () {
$(window).on("scroll", function () {
const y_scroll_pos = window.pageYOffset;
const scroll_pos_test = 2700; // set to whatever you want it to be
const words = makeWords();
Expand All @@ -129,35 +142,34 @@ const Portfolio = function () {
});
}

function designForm() {
$("#my-modal form").addClass("my-form");
}

function typeAnimation() {
Typed.new("#writing-text", {
strings: [
"I am Web and Blockchain Developer.", "Love everything about code.", "Fascinated to program things that work in real world and useful for people in their businesses."
"I am Web and Blockchain Developer.",
"Love everything about code.",
"Fascinated to program things that work in real world and useful for people in their businesses."
],
// Optionally use an HTML element to grab strings from (must wrap each string in a <p>)
stringsElement: null,
// typing speed
typeSpeed: 3,
contentType: 'text',
contentType: "text",
callback: function () {
$("#writing-text").css({ "color": "#fff", "background-color": "#C8412B" });
$("#writing-text").css({
color: "#fff",
"background-color": "#C8412B"
});
},
preStringTyped: function () { },
onStringTyped: function () { }
preStringTyped: function () {},
onStringTyped: function () {}
});
}

return {
displayWordCloud: displayWordCloud,
typeAnimation: typeAnimation
};

}();

})();

Portfolio.displayWordCloud();
Portfolio.typeAnimation();
2 changes: 0 additions & 2 deletions assets/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ h6 {
.experience-topics p {
color: #ACAEB2;
font-family: "Maven pro", sans-serif;
/*font-weight: 500;*/
}

.experience-topics ul li {
Expand Down Expand Up @@ -225,7 +224,6 @@ h6 {

.details a:hover,
.details a:focus {
/*box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 14px 1px rgba(0, 0, 0, 0.15);*/
background-color: rgba(255, 103, 68, 0.91) !important;
color: #fff;
}
Expand Down
Binary file removed bower_components/Desktop - Shortcut.lnk
Binary file not shown.
26 changes: 0 additions & 26 deletions bower_components/typed.js/.bower.json

This file was deleted.

4 changes: 0 additions & 4 deletions bower_components/typed.js/.gitignore

This file was deleted.

16 changes: 0 additions & 16 deletions bower_components/typed.js/bower.json

This file was deleted.

Loading

0 comments on commit 57e0d62

Please sign in to comment.