From 2ea9c2c28d7934aa30146bc97b8afe7a7b848e94 Mon Sep 17 00:00:00 2001 From: Saarthak Chaturvedi Date: Mon, 10 Dec 2018 11:02:45 +0530 Subject: [PATCH] Added ReadMore feature to Designers(#198) --- css/custom.css | 5 +++++ index.html | 31 ++++++++++++++++++------------- js/custom.js | 33 ++++++++++++++++++++++++++++++++- 3 files changed, 55 insertions(+), 14 deletions(-) diff --git a/css/custom.css b/css/custom.css index 04b0879..92a833d 100644 --- a/css/custom.css +++ b/css/custom.css @@ -280,3 +280,8 @@ nav .logo { top: 0; } +#more1, #more2, #more3, #more4 {display: none;} + +.designer_text{ + font-weight: bold; +} diff --git a/index.html b/index.html index 261879f..b630b3c 100644 --- a/index.html +++ b/index.html @@ -324,19 +324,20 @@

Featured Designers

Pierre Marchand

Scribus -

Pierre refuses labels: he is not a programmer, nor cartographer or artist. Or maybe +

Pierre refuses labels: he is not a programmer, nor cartographer or artist. Or maybe he is all at once? In the last few years, Pierre contributed to the development of major Free Software projects such as the Scribus desktop publishing software. He is projectleader - of FontMatrix, a font management system initiated in 2007. He works on the duo + of FontMatrix, a font management system initiated in... 2007. He works on the duo Fonzie-Nancy, a scan-to-font application that allows a font based on several "drawings" by nature and recently LiteralDraw, an application that allows the exploration of the relation between - drawing and code.

+ drawing and code.

+ Read More
@@ -367,13 +368,13 @@

Pierre Marchand

Alexandre Leray

Open Source Publishing -

The Unix(-like) operating system standard streams, allowing commands to be chained +

The Unix(-like) operating system standard streams, allowing commands to be chained together to produce original programs. It shows our interest for programming, for the GNU/Linux operating system and Free software in general. But moreover it reflects our interest - for language, and how the latter is a tension between existing standards and new + for ...language, and how the latter is a tension between existing standards and new meanings. We've been trained as classical graphic designers in the Valence school of Fine ArtsFR @@ -383,7 +384,8 @@

Alexandre Leray

in RotterdamNL. We strengthen our research and theory practice along developing our programming - skills to apply them to graphic design.

+ skills to apply them to graphic design.

+ Read More
@@ -415,11 +417,12 @@

Alexandre Leray

Stéphanie Vilayphiou

Open Source Publishing -

Unix(-like) operating system standard streams, allowing commands to be chained +

Unix(-like) operating system standard streams, allowing commands to be chained together to produce original programs. It shows our interest for programming, for the GNU/Linux operating - system and Free software in general. But moreover it reflects our interest for + system and Free software in general. But moreover it reflects ... + our interest for language, and how the latter is a tension between existing standards and new meanings. We've been @@ -431,7 +434,8 @@

Stéphanie Vilayphiou

RotterdamNL. We strengthen our research and theory practice along developing our programming skills - to apply them to graphic design.

+ to apply them to graphic design.

+ Read More
@@ -456,11 +460,11 @@

Stéphanie Vilayphiou

Pierre Huyghebaert

Head of Digital Technology at Vietnam Press Holdings -

Pierre Huyghebaert studied visual communication, typography and animation. In +

Pierre Huyghebaert studied visual communication, typography and animation. In twenty years, he developed several practices around graphic design: co-founder of the type design label - Hammerfonts, free-lancer and art director in various studios, co-founder of the + Hammerfonts,... free-lancer and art director in various studios, co-founder of the studio Mind The Gap in Beirut (Lebanon) in 1993 with Karl Bassil, working in duo with the illustrator/photographer/cartoon @@ -482,7 +486,8 @@

Pierre Huyghebaert

in Brussels. He collaborates with visual artists, including Honoré d’O, Patrick Corillon, - Vincent Meessen.

+ Vincent Meessen.

+ Read More
@@ -1248,7 +1253,7 @@

Mario Behling

  • -
  • + FOSSASIA Summit Open Design Weeks 2012
  • diff --git a/js/custom.js b/js/custom.js index 89bb058..20ba5f9 100644 --- a/js/custom.js +++ b/js/custom.js @@ -23,4 +23,35 @@ $(document).ready(function () { }); $('.map-holder').click(function () { $(this).removeClass('zoom-off'); -}); \ No newline at end of file +}); + +function readMore(number) { + if (number == 1) { + var dots = document.getElementById("dots1"); + var moreText = document.getElementById("more1"); + var btnText = document.getElementById("myBtn1"); + + } else if (number == 2) { + var dots = document.getElementById("dots2"); + var moreText = document.getElementById("more2"); + var btnText = document.getElementById("myBtn2"); + + } else if (number == 3) { + var dots = document.getElementById("dots3"); + var moreText = document.getElementById("more3"); + var btnText = document.getElementById("myBtn3"); + }else if (number == 4) { + var dots = document.getElementById("dots4"); + var moreText = document.getElementById("more4"); + var btnText = document.getElementById("myBtn4"); + } + if (dots.style.display === "none") { + dots.style.display = "inline"; + btnText.innerHTML = "Read more"; + moreText.style.display = "none"; + } else { + dots.style.display = "none"; + btnText.innerHTML = "Read less"; + moreText.style.display = "inline"; + } +}